Misra 15_7: fix what seems to be a false positive of cppcheck

master
Riccardo 2019-07-03 20:53:00 -07:00
parent 812ace5386
commit f2a3a177b3
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}