Mercurial > public > ostc_companion
diff Serial.cpp @ 2:177f640940f2
Update exception class and cleanup redifinitions
During firmware download and exception caused the application to stop.
Rootcause was the defference between QT5 and QT6 exception and string
handling which is updated now. In addition some old definitions were
removed to avoid compiler warnings.
| author | Ideenmodellierer |
|---|---|
| date | Fri, 28 Nov 2025 19:57:35 +0100 |
| parents | 0b3630a29ad8 |
| children |
line wrap: on
line diff
--- a/Serial.cpp Thu Nov 27 18:40:28 2025 +0100 +++ b/Serial.cpp Fri Nov 28 19:57:35 2025 +0100 @@ -231,11 +231,9 @@ S_LEN len = 0; S_READ(_hSerial, &byte, 1, len); if( len != 1 ) - // LOG_THROW_E(ReadTimeout, "< timeout" ); - LOG_THROW("< timeout" ); + LOG_THROW_E(ReadTimeout, "< timeout" ); if( isprint(byte) ) - // LOG_DEBUG("< " << QString().sprintf("%02x '%c'", byte, byte) ); LOG_DEBUG("< " << QString::asprintf("%02x '%c'", byte, byte)); else LOG_DEBUG("< " << QString::asprintf("%02x", byte) );
