1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

beeperCount in beeperOffSetAll for config_unittest

This commit is contained in:
Pierre-A 2016-02-27 00:32:45 +01:00 committed by borisbstyle
parent b4fb558dd4
commit 3af6ff7e9b
3 changed files with 3 additions and 4 deletions

View file

@ -2135,7 +2135,7 @@ static void cliBeeper(char *cmdline)
if (strncasecmp(cmdline, beeperNameForTableIndex(i), len) == 0) {
if (remove) { // beeper off
if (i == BEEPER_ALL-1)
beeperOffSetAll();
beeperOffSetAll(beeperCount-2);
else
if (i == BEEPER_PREFERENCE-1)
setBeeperOffMask(getPreferedBeeperOffMask());