Cleanups II.

This commit is contained in:
Christoph Holzheuer
2026-02-10 14:25:06 +01:00
parent afe8588cd3
commit 0ea9ce2e0f
13 changed files with 545 additions and 47 deletions

View File

@@ -266,14 +266,14 @@ retry:
while( timeOuts-- && !::CanReceiveGetCount( 0 ) )
bc::delay_millis( cTIMEOUT_MS );
if( timeOuts == -1 )
if (timeOuts == -1)
return std::unexpected(QString("readRawValue error: (Node)Timeout" ));
// message empfangen
int err = ::CanReceive( 0, &msg, 1 );
if( err < 0 )
return std::unexpected(QString("readRawValue error: Lesefehler" ));
return std::unexpected(QString("CAN response errror: Timeout"));
if( --retries && ( msg.Id != (uint32_t)BC::ID::ID_Bib || msg.MsgLen != 4 || msg.MsgData[1] != registerID ) )
goto retry;