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:
parent
36de2bbc23
commit
9f15da0641
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue