From f0abdacce0bb682f5837f01daff5cf4c23b028a0 Mon Sep 17 00:00:00 2001 From: bkleiner Date: Thu, 25 Jul 2024 18:33:06 +0200 Subject: [PATCH] dshot: pull line low ...esc beeps are annoying --- src/driver/at32/motor_dshot.c | 2 +- src/driver/stm32/motor_dshot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/at32/motor_dshot.c b/src/driver/at32/motor_dshot.c index 0de03e968..2ad1dbcde 100644 --- a/src/driver/at32/motor_dshot.c +++ b/src/driver/at32/motor_dshot.c @@ -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; diff --git a/src/driver/stm32/motor_dshot.c b/src/driver/stm32/motor_dshot.c index 18a5f99a2..9766541d0 100644 --- a/src/driver/stm32/motor_dshot.c +++ b/src/driver/stm32/motor_dshot.c @@ -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;