From 8b28ac6b18df4178fd0352a31b26997d7a62b6bc Mon Sep 17 00:00:00 2001 From: Devansh Varshney Date: Sun, 29 Mar 2026 18:27:48 +0530 Subject: [PATCH] cppcheck: replace bool 0 assignment with false in toyota safety --- opendbc/safety/modes/toyota.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendbc/safety/modes/toyota.h b/opendbc/safety/modes/toyota.h index 3e0a8b7c05f..0d94d2ecc54 100644 --- a/opendbc/safety/modes/toyota.h +++ b/opendbc/safety/modes/toyota.h @@ -331,7 +331,7 @@ static bool toyota_tx_hook(const CANPacket_t *msg) { // this address is sub-addressed. only allow tester present to radar (0xF) bool invalid_uds_msg = (GET_BYTES(msg, 0, 4) != 0x003E020FU) || (GET_BYTES(msg, 4, 4) != 0x0U); if (invalid_uds_msg) { - tx = 0; + tx = false; } }