From 3fb702e22efa7647a4a528cde916de005df63863 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Mon, 30 Nov 2015 19:38:29 -0500 Subject: [PATCH] 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. --- serialworker.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/serialworker.cpp b/serialworker.cpp index 096675f..bd821d6 100644 --- a/serialworker.cpp +++ b/serialworker.cpp @@ -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.