Skip to content

Commit

Permalink
dshot: pull line low
Browse files Browse the repository at this point in the history
...esc beeps are annoying
  • Loading branch information
bkleiner committed Jul 25, 2024
1 parent 39a3fb1 commit f0abdac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/driver/at32/motor_dshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static void dshot_init_motor_pin(uint32_t index) {
gpio_init.drive = GPIO_DRIVE_HIGH;
gpio_init.pull = GPIO_NO_PULL;
gpio_pin_init(target.motor_pins[index], gpio_init);
gpio_pin_set(target.motor_pins[index]);
gpio_pin_reset(target.motor_pins[index]);

dshot_pins[index].port = gpio_pin_defs[target.motor_pins[index]].port;
dshot_pins[index].pin = gpio_pin_defs[target.motor_pins[index]].pin;
Expand Down
2 changes: 1 addition & 1 deletion src/driver/stm32/motor_dshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static void dshot_init_motor_pin(uint32_t index) {
gpio_init.drive = GPIO_DRIVE_HIGH;
gpio_init.pull = GPIO_NO_PULL;
gpio_pin_init(target.motor_pins[index], gpio_init);
gpio_pin_set(target.motor_pins[index]);
gpio_pin_reset(target.motor_pins[index]);

dshot_pins[index].port = gpio_pin_defs[target.motor_pins[index]].port;
dshot_pins[index].pin = gpio_pin_defs[target.motor_pins[index]].pin;
Expand Down

0 comments on commit f0abdac

Please sign in to comment.