From df833a61782dab76776c376d213ef4950cf25f2f Mon Sep 17 00:00:00 2001 From: Ben Hitchcock Date: Sat, 2 Aug 2014 14:11:36 +0800 Subject: [PATCH] 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. --- src/main/config/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/config/config.c b/src/main/config/config.c index 7423dd6541..661d97d0d0 100755 --- a/src/main/config/config.c +++ b/src/main/config/config.c @@ -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)