mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Bugfix for wrong number of beeps when changing profiles
When changing profiles with the sticks, CleanFlight was beeping 0 times for profile 1, once for profile 2, and twice for profile 3. This wasn't intuitive, and was different to how Baseflight beeps when changing profiles. This change makes baseflight give the same number of beeps as the profile number that you change into.
This commit is contained in:
parent
582503c0e6
commit
df833a6178
1 changed files with 1 additions and 1 deletions
|
@ -634,7 +634,7 @@ void changeProfile(uint8_t profileIndex)
|
||||||
masterConfig.current_profile_index = profileIndex;
|
masterConfig.current_profile_index = profileIndex;
|
||||||
writeEEPROM();
|
writeEEPROM();
|
||||||
readEEPROM();
|
readEEPROM();
|
||||||
blinkLedAndSoundBeeper(2, 40, profileIndex);
|
blinkLedAndSoundBeeper(2, 40, profileIndex + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool feature(uint32_t mask)
|
bool feature(uint32_t mask)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue