reduce to only useable data on CAN bus
This commit is contained in:
		| @@ -52,7 +52,7 @@ bool CAN_processEvent(Event* ev) { | |||||||
|             if (ev->id == evCAsend) { |             if (ev->id == evCAsend) { | ||||||
|                 uCAN_MSG canMsg; |                 uCAN_MSG canMsg; | ||||||
|                 canMsg.frame.idType = 0;    // I don't understand what is it |                 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.rtr = 0;       // no remote frame | ||||||
|                 canMsg.frame.data0 = (uint8_t) data; |                 canMsg.frame.data0 = (uint8_t) data; | ||||||
|                 data = data >> 8; |                 data = data >> 8; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user