Removed singlewire mode from settings screen because it is on

connection screen now. Added ability to show binary view of a byte.
Added changed bits to each message ID in the frame details view.
This commit is contained in:
Collin Kidder
2016-01-03 18:08:10 -05:00
parent ff130814d9
commit e2903c9058
4 changed files with 29 additions and 11 deletions
+11
View File
@@ -73,6 +73,17 @@ public:
else return formatHexNum(value);
}
static QString formatByteAsBinary(uint8_t value)
{
QString output;
for (int b = 7; b >= 0; b--)
{
if (value & (1 << b)) output += "1";
else output += "0";
}
return output;
}
//parses the input string to grab as much of it as possible while staying alpha numeric
static QString grabAlphaNumeric(QString &input)
{