Skip to content

Commit

Permalink
misra
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyhaibin committed Nov 19, 2024
1 parent 75ee9fd commit 6d9e5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/safety/safety_hyundai.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static bool hyundai_tx_hook(const CANPacket_t *to_send) {
}

// UDS: Only tester present ("\x02\x3E\x80\x00\x00\x00\x00\x00") allowed on diagnostics address
if (addr == 0x7D0 && !hyundai_escc) {
if ((addr == 0x7D0) && !(hyundai_escc)) {
if ((GET_BYTES(to_send, 0, 4) != 0x00803E02U) || (GET_BYTES(to_send, 4, 4) != 0x0U)) {
tx = false;
}
Expand Down

0 comments on commit 6d9e5ec

Please sign in to comment.