mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Ensure PID/rate profile is updated before editing values
This commit is contained in:
parent
a885184796
commit
334dbc3039
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,7 @@ static long cmsx_profileIndexOnChange(displayPort_t *displayPort, const void *pt
|
|||
UNUSED(ptr);
|
||||
|
||||
pidProfileIndex = tmpPidProfileIndex - 1;
|
||||
changePidProfile(pidProfileIndex);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -98,6 +99,7 @@ static long cmsx_rateProfileIndexOnChange(displayPort_t *displayPort, const void
|
|||
UNUSED(ptr);
|
||||
|
||||
rateProfileIndex = tmpRateProfileIndex - 1;
|
||||
changeControlRateProfile(rateProfileIndex);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue