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

Remove BEEPER_CONFIRM_BEEP. Simplifies logic, reduces code size, and

ensures that the durations of one or more confirmation beeps can never
get out of sync when the code is changed.  Renamed queueConfirmationBeep
to beeperConfirmationBeeps - nothing was actually queued.
This commit is contained in:
Dominic Clifton 2015-04-25 10:53:07 +02:00
parent 064de090a0
commit 3974b02b3a
4 changed files with 25 additions and 30 deletions

View file

@ -397,9 +397,9 @@ void applyStepAdjustment(controlRateConfig_t *controlRateConfig, uint8_t adjustm
float newFloatValue;
if (delta > 0) {
queueConfirmationBeep(2);
beeperConfirmationBeeps(2);
} else {
queueConfirmationBeep(1);
beeperConfirmationBeeps(1);
}
switch(adjustmentFunction) {
case ADJUSTMENT_RC_RATE:
@ -520,7 +520,7 @@ void applySelectAdjustment(uint8_t adjustmentFunction, uint8_t position)
}
if (applied) {
queueConfirmationBeep(position + 1);
beeperConfirmationBeeps(position + 1);
}
}