Set readyRecieve to true upon connection

This commit is contained in:
NeoTheFox 2015-03-16 22:00:09 +03:00
parent 16de411b2d
commit 16b3adf8dc

View File

@ -120,12 +120,13 @@ void Sender::openPort(QSerialPortInfo i)
if(!printer->isOpen() && printer->open(QIODevice::ReadWrite))
{
//Moved here to be compatible with Qt 5.2.1
if(!printer->setBaudRate(baudrate))
emit baudrateSetFailed(baudrate);
printer->setFlowControl(QSerialPort::HardwareControl);
}
readyRecieve = true;
}
void Sender::closePort()