mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Merge pull request #248 from MotoLab/betaflight_ON_USB_fix
Fixed ON_USB beeper inhibit
This commit is contained in:
commit
555a9cf705
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ static const beeperTableEntry_t *currentBeeperEntry = NULL;
|
||||||
*/
|
*/
|
||||||
void beeper(beeperMode_e mode)
|
void beeper(beeperMode_e mode)
|
||||||
{
|
{
|
||||||
if (mode == BEEPER_SILENCE || (mode == BEEPER_USB && (feature(FEATURE_VBAT) && (batteryCellCount < 2)))) {
|
if (mode == BEEPER_SILENCE || ((getBeeperOffMask() & (1 << (BEEPER_USB-1))) && (feature(FEATURE_VBAT) && (batteryCellCount < 2)))) {
|
||||||
beeperSilence();
|
beeperSilence();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue