Skip to content

Commit

Permalink
genuinely useful MISRA warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Oct 2, 2024
1 parent 25e1fbc commit b07f900
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions board/safety/safety_toyota.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ static void toyota_rx_hook(const CANPacket_t *to_push) {
if (addr == 0x1D2) {
bool cruise_engaged = GET_BIT(to_push, 5U);
pcm_cruise_check(cruise_engaged);
}
if (addr == 0x1D2) {
gas_pressed = !GET_BIT(to_push, 4U); // GAS_PEDAL.GAS_RELEASED
}
if (!toyota_alt_brake && (addr == 0x226)) {
Expand Down

0 comments on commit b07f900

Please sign in to comment.