1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Merge pull request #3518 from DanNixon/cms_fix_pid_rate_editing

Ensure PID/rate profile is updated before editing values in CMS
This commit is contained in:
Martin Budden 2017-07-15 08:54:58 +01:00 committed by GitHub
commit 03273e4ab9

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