Cleanups II.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user