Unsupported by OS error handling

This commit is contained in:
NeoTheFox 2015-03-21 00:57:03 +03:00
parent 6cd2ac8d2e
commit f38e1bf069

View File

@ -682,6 +682,10 @@ void MainWindow::serialError(QSerialPort::SerialPortError error)
errorMsg = "Disconnected";
break;
case QSerialPort::UnsupportedOperationError:
errorMsg = "Operation not supported.\nUnsupported baudrate?";
break;
default:
errorMsg = "Unknown error\nSomething went wrong";
break;