Bug fixes in connection code, some commented out debugging statements used only for specific debugging

This commit is contained in:
Collin Kidder
2016-12-19 20:46:59 -05:00
parent 0f3f9e0fad
commit cdfb7661a1
2 changed files with 9 additions and 3 deletions
+3 -2
View File
@@ -150,7 +150,7 @@ bool GVRetSerial::piSendFrame(const CANFrame& frame)
CANFrame tempFrame = frame;
tempFrame.isReceived = false;
//qDebug() << "Sending out frame with id " << frame->ID;
//qDebug() << "Sending out GVRET frame with id " << frame.ID << " on bus " << frame.bus;
framesRapid++;
@@ -301,7 +301,7 @@ void GVRetSerial::readSerialData()
{
QByteArray data = serial->readAll();
unsigned char c;
qDebug() << (tr("Got data from serial. Len = %0").arg(data.length()));
//qDebug() << (tr("Got data from serial. Len = %0").arg(data.length()));
for (int i = 0; i < data.length(); i++)
{
c = data.at(i);
@@ -413,6 +413,7 @@ void GVRetSerial::procRXChar(unsigned char c)
/* get frame from queue */
CANFrame* frame_p = getQueue().get();
if(frame_p) {
//qDebug() << "GVRET got frame on bus " << frame_p->bus;
/* copy frame */
*frame_p = buildFrame;
/* enqueue frame */