reduce to only useable data on CAN bus

This commit is contained in:
Rémi Heredero 2023-08-24 15:26:29 +02:00
parent 65e4277dd4
commit f121f5ddf9

View File

@ -52,7 +52,7 @@ bool CAN_processEvent(Event* ev) {
if (ev->id == evCAsend) {
uCAN_MSG canMsg;
canMsg.frame.idType = 0; // I don't understand what is it
canMsg.frame.dlc = 8; // 8 bytes to send
canMsg.frame.dlc = 4; // 4 bytes to send
canMsg.frame.rtr = 0; // no remote frame
canMsg.frame.data0 = (uint8_t) data;
data = data >> 8;