We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7dacfe commit 4ce60f3Copy full SHA for 4ce60f3
1 file changed
board/drivers/can_common.h
@@ -202,13 +202,13 @@ void ignition_can_hook(CANPacket_t *msg) {
202
}
203
204
// PSA exception
205
- if ((msg->addr == 0x2f5) && (len == 7)) {
206
- int counter = msg->data[0] & 0xFU;
+ if ((msg->addr == 0x432) && (len == 8)) {
+ int counter = msg->data[1] & 0xFU;
207
208
static int prev_counter_psa = -1;
209
if ((counter == ((prev_counter_psa + 1) % 16)) && (prev_counter_psa != -1)) {
210
- // STEERING->IGNITION
211
- ignition_can = ((msg->data[2] >> 5) & 0x1U);
+ // Dat_BSI1->P369_Com_stElecNetRaw
+ ignition_can = (msg->data[7] >> 4) == 0x5U;
212
ignition_can_cnt = 0U;
213
214
prev_counter_psa = counter;
0 commit comments