From f2a3a177b374f13f5d835a5448ee4b26e31e399a Mon Sep 17 00:00:00 2001 From: Riccardo Date: Wed, 3 Jul 2019 20:53:00 -0700 Subject: [PATCH] Misra 15_7: fix what seems to be a false positive of cppcheck --- board/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/main.c b/board/main.c index 810b09286b7867..4d29d2fa469b18 100644 --- a/board/main.c +++ b/board/main.c @@ -320,6 +320,8 @@ int usb_cb_control_msg(USB_Setup_TypeDef *setup, uint8_t *resp, bool hardwired) // if the ignition hook depends on something other than the started GPIO // we have to disable power savings (fix for GM and Tesla) set_power_save_state(POWER_SAVE_STATUS_DISABLED); + } else { + // power mode is already POWER_SAVE_STATUS_DISABLED and CAN TXs are active } can_init_all(); }