From 126c19e534a1d40b8f9db1db61cdce9ddc8c98bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C3=96ster?= Date: Fri, 9 Aug 2024 15:51:36 +0300 Subject: [PATCH] Fix MsgID naming --- Software/src/battery/IMIEV-CZERO-ION-BATTERY.cpp | 2 +- Software/src/battery/JAGUAR-IPACE-BATTERY.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/src/battery/IMIEV-CZERO-ION-BATTERY.cpp b/Software/src/battery/IMIEV-CZERO-ION-BATTERY.cpp index 1b01a5cb..08673c80 100644 --- a/Software/src/battery/IMIEV-CZERO-ION-BATTERY.cpp +++ b/Software/src/battery/IMIEV-CZERO-ION-BATTERY.cpp @@ -165,7 +165,7 @@ void receive_can_battery(CAN_frame rx_frame) { datalayer.battery.status.CAN_battery_still_alive = CAN_STILL_ALIVE; BMU_Detected = 1; //Pid index 0-3 - pid_index = (rx_frame.MsgID) - 1761; + pid_index = (rx_frame.ID) - 1761; //cmu index 1-12: ignore high order nibble which appears to sometimes contain other status bits cmu_id = (rx_frame.data.u8[0] & 0x0f); // diff --git a/Software/src/battery/JAGUAR-IPACE-BATTERY.cpp b/Software/src/battery/JAGUAR-IPACE-BATTERY.cpp index 1b6b6992..88e35ed5 100644 --- a/Software/src/battery/JAGUAR-IPACE-BATTERY.cpp +++ b/Software/src/battery/JAGUAR-IPACE-BATTERY.cpp @@ -225,7 +225,7 @@ void receive_can_battery(CAN_frame rx_frame) { } // Discard non-interesting can messages so they do not get logged via serial - if (rx_frame.MsgID < 0x500) { + if (rx_frame.ID < 0x500) { return; }