Fixed nasty bug in file comparator, fixed minor bug in frame info window, made serial initialization more correct.

This commit is contained in:
Collin Kidder
2015-08-07 22:09:13 -04:00
parent 53ecb2d02a
commit 89da3421f9
3 changed files with 39 additions and 16 deletions
+5 -2
View File
@@ -70,10 +70,13 @@ 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->setBaudRate(10000000); //more speed! probably does nothing for USB serial
serial->setDataBits(serial->Data8);
serial->setFlowControl(serial->HardwareControl); //this is important though
serial->open(QIODevice::ReadWrite);
if (!serial->open(QIODevice::ReadWrite))
{
qDebug() << serial->errorString();
}
serial->setDataTerminalReady(true); //you do need to set these or the fan gets dirty
serial->setRequestToSend(true);
QByteArray output;