Add sent frames to the frames lists as well. Previously anything sent

by the program would not show up and this leads to various issues.
This commit is contained in:
Collin Kidder
2015-11-30 19:38:29 -05:00
parent f7bd31ab53
commit 3fb702e22e
+4
View File
@@ -181,6 +181,10 @@ void SerialWorker::sendFrame(const CANFrame *frame, int bus = 0)
if (!serial->isOpen()) return;
//qDebug() << "writing " << buffer.length() << " bytes to serial port";
serial->write(buffer);
//show our sent frames in the list too.
canModel->addFrame(frame, false);
gotFrames++;
}
//a simple way for another thread to pass us a bunch of frames to send.