mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 07:15:18 +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);
|
UNUSED(ptr);
|
||||||
|
|
||||||
pidProfileIndex = tmpPidProfileIndex - 1;
|
pidProfileIndex = tmpPidProfileIndex - 1;
|
||||||
|
changePidProfile(pidProfileIndex);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -98,6 +99,7 @@ static long cmsx_rateProfileIndexOnChange(displayPort_t *displayPort, const void
|
||||||
UNUSED(ptr);
|
UNUSED(ptr);
|
||||||
|
|
||||||
rateProfileIndex = tmpRateProfileIndex - 1;
|
rateProfileIndex = tmpRateProfileIndex - 1;
|
||||||
|
changeControlRateProfile(rateProfileIndex);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue