Merge pull request #22 from MotoLab/beep_inhibit

Inhibit the buzzer on USB power, if batterycellcount < 2
This commit is contained in:
borisbstyle 2015-10-20 09:54:11 +02:00
commit 18c972f9a8
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ static const beeperTableEntry_t *currentBeeperEntry = NULL;
*/
void beeper(beeperMode_e mode)
{
if (mode == BEEPER_SILENCE) {
if (mode == BEEPER_SILENCE || (feature(FEATURE_VBAT) && (batteryCellCount < 2))) {
beeperSilence();
return;
}