Merge pull request #22 from MotoLab/beep_inhibit
Inhibit the buzzer on USB power, if batterycellcount < 2
This commit is contained in:
commit
18c972f9a8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue