Add frame count so that overwrite mode can show it. Frame count

replaces remote frame indicator when in overwrite mode.
This commit is contained in:
Collin Kidder
2019-04-10 20:29:13 -04:00
parent 4ab888cd77
commit 67b7de48a6
2 changed files with 20 additions and 2 deletions
+13
View File
@@ -16,11 +16,24 @@ public:
uint32_t len;
unsigned char data[8];
uint64_t timestamp;
uint32_t frameCount; //used in overwrite mode
friend bool operator<(const CANFrame& l, const CANFrame& r)
{
return l.timestamp < r.timestamp;
}
CANFrame()
{
ID = 0;
bus = 0;
extended = false;
remote = false;
isReceived = true;
len = 0;
timestamp = 0;
frameCount = 1;
}
};
class CANFltObserver