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:
@@ -284,6 +284,12 @@ QVariant CANFrameModel::data(const QModelIndex &index, int role) const
|
|||||||
case Column::Length:
|
case Column::Length:
|
||||||
return QString::number(thisFrame.len);
|
return QString::number(thisFrame.len);
|
||||||
case Column::ASCII:
|
case Column::ASCII:
|
||||||
|
if (thisFrame.ID >= 0x7FFFFFF0ull)
|
||||||
|
{
|
||||||
|
tempString.append("MARK ");
|
||||||
|
tempString.append(QString::number(thisFrame.ID & 0x7));
|
||||||
|
return tempString;
|
||||||
|
}
|
||||||
dLen = thisFrame.len;
|
dLen = thisFrame.len;
|
||||||
if (dLen < 0) dLen = 0;
|
if (dLen < 0) dLen = 0;
|
||||||
if (dLen > 8) dLen = 8;
|
if (dLen > 8) dLen = 8;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef CONFIG
|
#ifndef CONFIG
|
||||||
#define CONFIG
|
#define CONFIG
|
||||||
|
|
||||||
#define VERSION 183
|
#define VERSION 184
|
||||||
|
|
||||||
//try to keep this in sync.
|
//try to keep this in sync.
|
||||||
//SavvyCAN will complain if you connect a GVRET board with a revision
|
//SavvyCAN will complain if you connect a GVRET board with a revision
|
||||||
|
|||||||
Reference in New Issue
Block a user