1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +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:
Ben Hitchcock 2014-08-02 14:11:36 +08:00
parent 582503c0e6
commit df833a6178

View file

@ -634,7 +634,7 @@ void changeProfile(uint8_t profileIndex)
masterConfig.current_profile_index = profileIndex;
writeEEPROM();
readEEPROM();
blinkLedAndSoundBeeper(2, 40, profileIndex);
blinkLedAndSoundBeeper(2, 40, profileIndex + 1);
}
bool feature(uint32_t mask)