mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Merge pull request #856 from blckmn/betaflight
Fixed beeper on BJF4 rev3
This commit is contained in:
commit
9a38d8a9e1
2 changed files with 8 additions and 1 deletions
|
@ -362,6 +362,12 @@ void init(void)
|
|||
beeperConfig.isInverted = true;
|
||||
}
|
||||
#endif
|
||||
/* temp until PGs are implemented. */
|
||||
#ifdef BLUEJAYF4
|
||||
if (hardwareRevision <= BJF4_REV2) {
|
||||
beeperConfig.ioTag = IO_TAG(BEEPER_OPT);
|
||||
}
|
||||
#endif
|
||||
#ifdef CC3D
|
||||
if (masterConfig.use_buzzer_p6 == 1)
|
||||
beeperConfig.ioTag = IO_TAG(BEEPER_OPT);
|
||||
|
|
|
@ -33,7 +33,8 @@
|
|||
#define LED1 PB5
|
||||
#define LED2 PB4
|
||||
|
||||
#define BEEPER PB7
|
||||
#define BEEPER PC1
|
||||
#define BEEPER_OPT PB7
|
||||
#define BEEPER_INVERTED
|
||||
|
||||
#define INVERTER PB15
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue