Cast data after bitwise, for non-8bit CPU compatibility
This commit is contained in:
parent
c8f161cb42
commit
2a43af4424
1 changed files with 1 additions and 1 deletions
|
|
@ -843,7 +843,7 @@ CO_SRDO_process(CO_SRDO_t* SRDO, uint32_t timeDifference_us, uint32_t* timerNext
|
|||
|
||||
/* Verify, if normal and inverted data matches properly */
|
||||
for (uint8_t i = 0; i < SRDO->dataLength; i++) {
|
||||
if (~dataSRDO[0][i] != dataSRDO[1][i]) {
|
||||
if ( (uint8_t)(~dataSRDO[0][i]) != dataSRDO[1][i]) {
|
||||
data_ok = false;
|
||||
SRDO->internalState = CO_SRDO_state_error_rxNotInverted;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue