Skip to content

Commit

Permalink
fix print "Too big angle" during replay not showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Nov 5, 2024
1 parent e1c90f3 commit d233518
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 @@ -85,7 +85,7 @@ static void bmw_rx_hook(const CANPacket_t *to_push) {
int addr = GET_ADDR(to_push);
int bus = GET_BUS(to_push);

bool cruise_engaged = false;
static bool cruise_engaged = false;
if ((addr == BMW_DynamicCruiseControlStatus) || (addr == BMW_CruiseControlStatus)) { //handles both vehicle options VO544 and Vo540
if (addr == BMW_DynamicCruiseControlStatus) { //dynamic cruise control
cruise_engaged = (((GET_BYTE(to_push, 5) >> 3) & 0x1U) == 1U);
Expand Down

0 comments on commit d233518

Please sign in to comment.