Skip to content

Commit d9d0a62

Browse files
committed
Misra 5.5: missed this change from previous PR
1 parent 85fa3c0 commit d9d0a62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

board/gpio.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ void periph_init(void) {
9999

100100
// ********************* setters *********************
101101

102-
void set_can_enable(CAN_TypeDef *CAN, bool enabled) {
102+
void set_can_enable(CAN_TypeDef *CAN_obj, bool enabled) {
103103
// enable CAN busses
104-
if (CAN == CAN1) {
104+
if (CAN_obj == CAN1) {
105105
#ifdef PANDA
106106
// CAN1_EN
107107
set_gpio_output(GPIOC, 1, !enabled);
@@ -114,7 +114,7 @@ void set_can_enable(CAN_TypeDef *CAN, bool enabled) {
114114
set_gpio_output(GPIOB, 3, enabled);
115115
#endif
116116
#endif
117-
} else if (CAN == CAN2) {
117+
} else if (CAN_obj == CAN2) {
118118
#ifdef PANDA
119119
// CAN2_EN
120120
set_gpio_output(GPIOC, 13, !enabled);
@@ -123,7 +123,7 @@ void set_can_enable(CAN_TypeDef *CAN, bool enabled) {
123123
set_gpio_output(GPIOB, 4, enabled);
124124
#endif
125125
#ifdef CAN3
126-
} else if (CAN == CAN3) {
126+
} else if (CAN_obj == CAN3) {
127127
// CAN3_EN
128128
set_gpio_output(GPIOA, 0, !enabled);
129129
#endif

0 commit comments

Comments
 (0)