1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

OP-1383 follow up cleanup - improved closeDevice making sure that m_deviceOpened is always set back to false

This commit is contained in:
Philippe Renon 2014-07-14 22:07:44 +02:00
parent 3e5240062a
commit e261404206

View File

@ -169,12 +169,11 @@ void SerialConnection::closeDevice(const QString &deviceName)
// we have to delete the serial connection we created
if (serialHandle) {
serialHandle->deleteLater();
serialHandle = NULL;
m_deviceOpened = false;
serialHandle = NULL;
}
m_deviceOpened = false;
}
QString SerialConnection::connectionName()
{
return QString("Serial port");