Skip to content

Commit

Permalink
Misra 5.5: missed this change from previous PR
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Jul 8, 2019
1 parent 85fa3c0 commit d9d0a62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions board/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ void periph_init(void) {

// ********************* setters *********************

void set_can_enable(CAN_TypeDef *CAN, bool enabled) {
void set_can_enable(CAN_TypeDef *CAN_obj, bool enabled) {
// enable CAN busses
if (CAN == CAN1) {
if (CAN_obj == CAN1) {
#ifdef PANDA
// CAN1_EN
set_gpio_output(GPIOC, 1, !enabled);
Expand All @@ -114,7 +114,7 @@ void set_can_enable(CAN_TypeDef *CAN, bool enabled) {
set_gpio_output(GPIOB, 3, enabled);
#endif
#endif
} else if (CAN == CAN2) {
} else if (CAN_obj == CAN2) {
#ifdef PANDA
// CAN2_EN
set_gpio_output(GPIOC, 13, !enabled);
Expand All @@ -123,7 +123,7 @@ void set_can_enable(CAN_TypeDef *CAN, bool enabled) {
set_gpio_output(GPIOB, 4, enabled);
#endif
#ifdef CAN3
} else if (CAN == CAN3) {
} else if (CAN_obj == CAN3) {
// CAN3_EN
set_gpio_output(GPIOA, 0, !enabled);
#endif
Expand Down

0 comments on commit d9d0a62

Please sign in to comment.