Changed a lot of pointer references to const (it's more correct and

fixes a weird problem), fixed a problem with JSON to DBC, a few other
fixes
This commit is contained in:
Collin Kidder
2020-02-13 22:01:06 -05:00
parent 1a5d67d09e
commit d550fa79a0
18 changed files with 76 additions and 62 deletions
+4 -2
View File
@@ -119,6 +119,8 @@ bool SerialBusConnection::piSendFrame(const CANFrame& pFrame)
return false;
if (!mDev_p) return false;
qDebug() << "Data bytes at lowlevel: " << pFrame.payload().toBase64();
return mDev_p->writeFrame(pFrame);
}
@@ -179,7 +181,7 @@ void SerialBusConnection::framesReceived()
continue;
/* check frame */
if (recFrame.payload().length() <= 8) {
//if (recFrame.payload().length() <= 8) {
CANFrame* frame_p = getQueue().get();
if(frame_p) {
frame_p->setPayload(recFrame.payload());
@@ -241,7 +243,7 @@ void SerialBusConnection::framesReceived()
/* enqueue frame */
getQueue().queue();
}
//}
#if 0
else
qDebug() << "can't get a frame, ERROR";