Merge pull request #15 from 4712/betaflight

Fix: buzzer often starts beeping continuously on ESCs read
This commit is contained in:
borisbstyle 2015-10-01 07:44:20 +02:00
commit 4ccf9eac2e
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ void usb1WireInitialize()
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
}
#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_IN_FLOATING); //GPIO_Mode_IPU
#endif
}
#ifdef STM32F10X