We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88b8746 commit 1211230Copy full SHA for 1211230
src/Comms/SerialLink.cc
@@ -303,14 +303,14 @@ void SerialWorker::_onPortErrorOccurred(QSerialPort::SerialPortError portError)
303
case QSerialPort::NoError:
304
qCDebug(SerialLinkLog) << "About to open port" << _port->portName();
305
return;
306
+ case QSerialPort::ResourceError:
307
+ // We get this when a usb cable is unplugged
308
+ // Fallthrough
309
case QSerialPort::PermissionError:
310
if (_serialConfig->isAutoConnect()) {
311
312
}
313
break;
- /*case QSerialPort::ResourceError:
- serialPort->close();
- break;*/
314
default:
315
316
0 commit comments