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:
parent
064de090a0
commit
3974b02b3a
4 changed files with 25 additions and 30 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue