Added ability to decode MARK frames from the CAN stream. These are used just to mark

where you've done something. M2RET devices currently support this, more support to come later on.
This commit is contained in:
Collin Kidder
2018-02-04 18:10:37 -05:00
parent 80d7b8a993
commit 028a108169
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -284,6 +284,12 @@ QVariant CANFrameModel::data(const QModelIndex &index, int role) const
case Column::Length:
return QString::number(thisFrame.len);
case Column::ASCII:
if (thisFrame.ID >= 0x7FFFFFF0ull)
{
tempString.append("MARK ");
tempString.append(QString::number(thisFrame.ID & 0x7));
return tempString;
}
dLen = thisFrame.len;
if (dLen < 0) dLen = 0;
if (dLen > 8) dLen = 8;
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef CONFIG
#define CONFIG
#define VERSION 183
#define VERSION 184
//try to keep this in sync.
//SavvyCAN will complain if you connect a GVRET board with a revision