Fix MsgID naming

This commit is contained in:
Daniel Öster 2024-08-09 15:51:36 +03:00
parent 0816393bde
commit 126c19e534
2 changed files with 2 additions and 2 deletions

View file

@ -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);
//

View file

@ -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;
}