mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Fix MsgID naming
This commit is contained in:
parent
0816393bde
commit
126c19e534
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ void receive_can_battery(CAN_frame rx_frame) {
|
||||||
datalayer.battery.status.CAN_battery_still_alive = CAN_STILL_ALIVE;
|
datalayer.battery.status.CAN_battery_still_alive = CAN_STILL_ALIVE;
|
||||||
BMU_Detected = 1;
|
BMU_Detected = 1;
|
||||||
//Pid index 0-3
|
//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 index 1-12: ignore high order nibble which appears to sometimes contain other status bits
|
||||||
cmu_id = (rx_frame.data.u8[0] & 0x0f);
|
cmu_id = (rx_frame.data.u8[0] & 0x0f);
|
||||||
//
|
//
|
||||||
|
|
|
@ -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
|
// Discard non-interesting can messages so they do not get logged via serial
|
||||||
if (rx_frame.MsgID < 0x500) {
|
if (rx_frame.ID < 0x500) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue