1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Small bug fix and ioTag_t cast

This commit is contained in:
blckmn 2016-12-31 20:27:44 +11:00
parent e2ad32cd5e
commit aaa2ba4883
2 changed files with 2 additions and 2 deletions

View file

@ -1081,7 +1081,7 @@ void changeProfile(uint8_t profileIndex)
void changeControlRateProfile(uint8_t profileIndex)
{
if (profileIndex > MAX_RATEPROFILES) {
if (profileIndex >= MAX_RATEPROFILES) {
profileIndex = MAX_RATEPROFILES - 1;
}
setControlRateProfile(profileIndex);