reduce to only useable data on CAN bus
This commit is contained in:
parent
65e4277dd4
commit
f121f5ddf9
@ -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;
|
||||
|
Reference in New Issue
Block a user