Merge remote-tracking branch 'origin/develop' into feature/watchdog-alive

This commit is contained in:
Rémi Heredero 2023-08-25 18:23:47 +02:00
commit 88390a294a

View File

@ -74,9 +74,13 @@ bool CAN_processEvent(Event* ev) {
CAN_4_BYTES tmpData;
tmpData.full.bytes = data;
uint8_t idMsg = 0x0F && (tmpData.separate.byte0>>4);
uint8_t idRecipient = 0x0F && tmpData.separate.byte1;
uint8_t idSender = (tmpData.separate.byte1>>4);
uint8_t idMsg = tmpData.separate.byte0;
idMsg = idMsg >> 4;
idMsg = idMsg & 0xF;
uint8_t idRecipient = tmpData.separate.byte1;
idRecipient = idRecipient & 0xF;
uint8_t idSender = tmpData.separate.byte1;
idSender = idSender >> 4;
me->receiveCan(idSender, idMsg, canData);
}