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:
parent
e2ad32cd5e
commit
aaa2ba4883
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue