1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Fix Selectable Buzzer Pin for CC3D

This commit is contained in:
borisbstyle 2015-12-30 23:19:30 +01:00
parent 4135c1b9c2
commit dfcc3eb028
4 changed files with 27 additions and 10 deletions

View file

@ -303,9 +303,15 @@ void init(void)
beeperConfig.isInverted = true;
}
#endif
#ifdef CC3D
if (masterConfig.use_buzzer_p6 == 1)
beeperConfig.gpioPin = Pin_2;
beeperInit(&beeperConfig, masterConfig.use_buzzer_p6);
#else
beeperInit(&beeperConfig);
#endif
#endif
#ifdef INVERTER
initInverter();