Fixed ON_USB beeper inhibit

This commit is contained in:
Moto Moto 2016-03-03 23:06:04 -06:00
parent be038743b2
commit b75b01b4c5
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;
}