Added ability for connections to update the connection view details

based on hardware status.
This commit is contained in:
Collin Kidder
2016-03-26 22:01:34 -04:00
parent 147d539c36
commit 87c201aa44
6 changed files with 31 additions and 30 deletions
+2 -1
View File
@@ -81,7 +81,6 @@ void SerialWorker::setSerialPort(QSerialPortInfo *port)
serial = new QSerialPort(*port);
qDebug() << "Serial port name is " << port->portName();
//serial->setBaudRate(10000000); //more speed! probably does nothing for USB serial
serial->setDataBits(serial->Data8);
serial->setFlowControl(serial->HardwareControl); //this is important though
if (!serial->open(QIODevice::ReadWrite))
@@ -414,6 +413,8 @@ void SerialWorker::procRXChar(unsigned char c)
if (!can0Enabled) can0Baud = 0;
isConnected = true;
emit connectionSuccess();
emit busStatus(busBase, can0Baud, can0Enabled?0x49:0x48); //say that we're updating baud rate and set enabled status
emit busStatus(busBase + 1, can1Baud, can1Enabled?0x49:0x48);
break;
}
rx_step++;