1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Fix Profile selection Bug MSP and rc_controls.c warnings

This commit is contained in:
borisbstyle 2016-02-05 23:00:23 +01:00
parent 36de2bbc23
commit 9f15da0641
2 changed files with 3 additions and 3 deletions

View file

@ -1213,7 +1213,7 @@ static bool processInCommand(void)
case MSP_SELECT_SETTING:
if (!ARMING_FLAG(ARMED)) {
masterConfig.current_profile_index = read8();
if (masterConfig.current_profile_index > 2) {
if (masterConfig.current_profile_index > 1) {
masterConfig.current_profile_index = 0;
}
writeEEPROM();