Skip to content

Commit b19b66a

Browse files
authored
Disable body ignition check temporarily (#2390)
Fix keeping teslas awake
1 parent ac89f0c commit b19b66a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

board/drivers/can_common.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,12 @@ void ignition_can_hook(CANPacket_t *msg) {
202202
}
203203
}
204204

205+
// TODO: this is too loose, Teslas have 0x222
205206
// body v2 exception
206-
if (((msg->bus == 0U) || (msg->bus == 2U)) && (msg->addr == 0x222U)) {
207-
ignition_can = true;
208-
ignition_can_cnt = 0U;
209-
}
207+
// if (((msg->bus == 0U) || (msg->bus == 2U)) && (msg->addr == 0x222U)) {
208+
// ignition_can = true;
209+
// ignition_can_cnt = 0U;
210+
// }
210211
}
211212

212213
bool can_tx_check_min_slots_free(uint32_t min) {

0 commit comments

Comments
 (0)