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:
parent
3e5240062a
commit
e261404206
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user