mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 17:55:30 +03:00
Fix: buzzer often starts beeping continuously on ESCs read
This commit is contained in:
parent
50d44ea295
commit
2afeefb753
1 changed files with 6 additions and 0 deletions
|
@ -94,6 +94,12 @@ void usb1WireInitialize()
|
||||||
for (volatile uint8_t i = 0; i < ESC_COUNT; i++) {
|
for (volatile uint8_t i = 0; i < ESC_COUNT; i++) {
|
||||||
gpio_set_mode(escHardware[i].gpio, (1U << escHardware[i].pinpos), Mode_IPU); //GPIO_Mode_IPU
|
gpio_set_mode(escHardware[i].gpio, (1U << escHardware[i].pinpos), Mode_IPU); //GPIO_Mode_IPU
|
||||||
}
|
}
|
||||||
|
#ifdef BEEPER
|
||||||
|
// fix for buzzer often starts beeping continuously when the ESCs are read
|
||||||
|
// switch beeper off until reboot
|
||||||
|
gpio_set_mode(BEEP_GPIO, BEEP_PIN, Mode_IPU); //GPIO_Mode_IPU
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef STM32F10X
|
#ifdef STM32F10X
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue