File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ void periph_init(void) {
99
99
100
100
// ********************* setters *********************
101
101
102
- void set_can_enable (CAN_TypeDef * CAN , bool enabled ) {
102
+ void set_can_enable (CAN_TypeDef * CAN_obj , bool enabled ) {
103
103
// enable CAN busses
104
- if (CAN == CAN1 ) {
104
+ if (CAN_obj == CAN1 ) {
105
105
#ifdef PANDA
106
106
// CAN1_EN
107
107
set_gpio_output (GPIOC , 1 , !enabled );
@@ -114,7 +114,7 @@ void set_can_enable(CAN_TypeDef *CAN, bool enabled) {
114
114
set_gpio_output (GPIOB , 3 , enabled );
115
115
#endif
116
116
#endif
117
- } else if (CAN == CAN2 ) {
117
+ } else if (CAN_obj == CAN2 ) {
118
118
#ifdef PANDA
119
119
// CAN2_EN
120
120
set_gpio_output (GPIOC , 13 , !enabled );
@@ -123,7 +123,7 @@ void set_can_enable(CAN_TypeDef *CAN, bool enabled) {
123
123
set_gpio_output (GPIOB , 4 , enabled );
124
124
#endif
125
125
#ifdef CAN3
126
- } else if (CAN == CAN3 ) {
126
+ } else if (CAN_obj == CAN3 ) {
127
127
// CAN3_EN
128
128
set_gpio_output (GPIOA , 0 , !enabled );
129
129
#endif
You can’t perform that action at this time.
0 commit comments