Minor changes.

This commit is contained in:
Nffj84
2024-07-04 13:31:28 +03:00
parent d377a626e2
commit f419d69dab
8 changed files with 18 additions and 13 deletions
+4 -3
View File
@@ -21,11 +21,12 @@ SerialPort::SerialPort(QString usePort)
// Open the serial port
if (openPort() == false) {
qCritical().noquote().nospace() << "SerialPort(): Unable to open port " << port;
return;
qCritical().noquote().nospace() << "SerialPort(): Unable to open port " << usePort;
delete mSerialPort;
exit(EXIT_FAILURE);
}
qDebug().noquote().nospace() << "SerialPort(): Opened port " << port;
qDebug().noquote().nospace() << "SerialPort(): Opened port " << usePort;
}
SerialPort::~SerialPort()