File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ static void set_motor_freq(int freq, const int dev_side)
264
264
rpi_gpio_clear32 (RPI_GPIO_P2MASK , 1 << MOTDIR_L_BASE );
265
265
} else if (dev_side == DEV_RIGHT ) {
266
266
motor_r_freq_is_positive = 1 ;
267
- rpi_gpio_clear32 (RPI_GPIO_P2MASK , 1 << MOTDIR_R_BASE );
267
+ rpi_gpio_set32 (RPI_GPIO_P2MASK , 1 << MOTDIR_R_BASE );
268
268
}
269
269
} else {
270
270
if (dev_side == DEV_LEFT ) {
@@ -273,7 +273,7 @@ static void set_motor_freq(int freq, const int dev_side)
273
273
freq = - freq ;
274
274
} else if (dev_side == DEV_RIGHT ) {
275
275
motor_r_freq_is_positive = 0 ;
276
- rpi_gpio_set32 (RPI_GPIO_P2MASK , 1 << MOTDIR_R_BASE );
276
+ rpi_gpio_clear32 (RPI_GPIO_P2MASK , 1 << MOTDIR_R_BASE );
277
277
freq = - freq ;
278
278
}
279
279
}
You can’t perform that action at this time.
0 commit comments