1
0
Fork 0
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:
Dan Nixon 2017-07-14 14:44:16 +01:00 committed by GitHub
parent a885184796
commit 334dbc3039

View file

@ -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;
}