We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9863ba3 commit 831fe3cCopy full SHA for 831fe3c
1 file changed
src/drivers/rtmouse_dev.c
@@ -264,7 +264,7 @@ static void set_motor_freq(int freq, const int dev_side)
264
rpi_gpio_clear32(RPI_GPIO_P2MASK, 1 << MOTDIR_L_BASE);
265
} else if (dev_side == DEV_RIGHT) {
266
motor_r_freq_is_positive = 1;
267
- rpi_gpio_clear32(RPI_GPIO_P2MASK, 1 << MOTDIR_R_BASE);
+ rpi_gpio_set32(RPI_GPIO_P2MASK, 1 << MOTDIR_R_BASE);
268
}
269
} else {
270
if (dev_side == DEV_LEFT) {
@@ -273,7 +273,7 @@ static void set_motor_freq(int freq, const int dev_side)
273
freq = -freq;
274
275
motor_r_freq_is_positive = 0;
276
- rpi_gpio_set32(RPI_GPIO_P2MASK, 1 << MOTDIR_R_BASE);
+ rpi_gpio_clear32(RPI_GPIO_P2MASK, 1 << MOTDIR_R_BASE);
277
278
279
0 commit comments