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:
parent
4135c1b9c2
commit
dfcc3eb028
4 changed files with 27 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue