Set readyRecieve to true upon connection
This commit is contained in:
parent
16de411b2d
commit
16b3adf8dc
@ -120,12 +120,13 @@ void Sender::openPort(QSerialPortInfo i)
|
|||||||
|
|
||||||
if(!printer->isOpen() && printer->open(QIODevice::ReadWrite))
|
if(!printer->isOpen() && printer->open(QIODevice::ReadWrite))
|
||||||
{
|
{
|
||||||
|
|
||||||
//Moved here to be compatible with Qt 5.2.1
|
//Moved here to be compatible with Qt 5.2.1
|
||||||
if(!printer->setBaudRate(baudrate))
|
if(!printer->setBaudRate(baudrate))
|
||||||
emit baudrateSetFailed(baudrate);
|
emit baudrateSetFailed(baudrate);
|
||||||
printer->setFlowControl(QSerialPort::HardwareControl);
|
printer->setFlowControl(QSerialPort::HardwareControl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
readyRecieve = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sender::closePort()
|
void Sender::closePort()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user