Merge pull request #248 from MotoLab/betaflight_ON_USB_fix

Fixed ON_USB beeper inhibit
This commit is contained in:
borisbstyle 2016-03-04 09:11:08 +01:00
commit 555a9cf705
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ static const beeperTableEntry_t *currentBeeperEntry = NULL;
*/
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();
return;
}