Skip to content

Commit

Permalink
Misra 15_7: fix what seems to be a false positive of cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Jul 4, 2019
1 parent 812ace5 commit f2a3a17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f2a3a17

Please sign in to comment.