1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +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

@ -1085,9 +1085,8 @@ void beeperOffSet(uint32_t mask)
masterConfig.beeper_off_flags |= mask;
}
void beeperOffSetAll(void)
void beeperOffSetAll(uint8_t beeperCount)
{
uint8_t beeperCount = beeperTableEntryCount() - 2;
uint32_t mask = 0;
for (int i = 0; i < beeperCount; i++){
mask |= (1 << i);