diff --git a/mainwindow.cpp b/mainwindow.cpp --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -178,6 +178,7 @@ void MainWindow::onPortError(QSerialPort qDebug() << "Closing port on resource error: " << serialPort.portName(); togglePort(); } + loadPortList(); break; default: qDebug() << "Unhandled port error: " << error;