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

Added PG config definitions 8

This commit is contained in:
Martin Budden 2017-02-26 17:50:30 +00:00
parent 3be6441e74
commit 7ae57eb8cf
10 changed files with 78 additions and 16 deletions

View file

@ -1275,7 +1275,7 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
} else {
value = value & ~RATEPROFILE_MASK;
if (value >= MAX_RATEPROFILES) {
if (value >= CONTROL_RATE_PROFILE_COUNT) {
value = 0;
}
changeControlRateProfile(value);