From f121f5ddf97f32948eb4eca157e289d32a3a15bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Thu, 24 Aug 2023 15:26:29 +0200 Subject: [PATCH] reduce to only useable data on CAN bus --- 306-controller_interface.X/middleware/can_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/306-controller_interface.X/middleware/can_interface.c b/306-controller_interface.X/middleware/can_interface.c index 2656dc9..cac0487 100644 --- a/306-controller_interface.X/middleware/can_interface.c +++ b/306-controller_interface.X/middleware/can_interface.c @@ -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;