Skip to content

Commit

Permalink
only exit on driver pressing the brake
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Aug 19, 2024
1 parent 23dbb6f commit 1df003f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/safety/safety_bmw.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static void bmw_rx_hook(const CANPacket_t *to_push) {
// exit controls on brake press
if (addr == BMW_EngineAndBrake) {
// any of two bits at position 61 & 62
brake_pressed = (GET_BYTE(to_push, 7) & 0x60U) != 0U;
brake_pressed = (GET_BYTE(to_push, 7) & 0x20U) != 0U;
}

if (addr == BMW_AccPedal) {
Expand Down

0 comments on commit 1df003f

Please sign in to comment.