mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Made the timerioTagGetByUsage zero based, as it is not used by users.
This commit is contained in:
parent
aad6efdf03
commit
88ed243d32
4 changed files with 5 additions and 5 deletions
|
@ -105,7 +105,7 @@ void pgResetFn_motorConfig(motorConfig_t *motorConfig)
|
|||
#endif
|
||||
|
||||
for (int motorIndex = 0; motorIndex < MAX_SUPPORTED_MOTORS; motorIndex++) {
|
||||
motorConfig->dev.ioTags[motorIndex] = timerioTagGetByUsage(TIM_USE_MOTOR, motorIndex + 1);
|
||||
motorConfig->dev.ioTags[motorIndex] = timerioTagGetByUsage(TIM_USE_MOTOR, motorIndex);
|
||||
}
|
||||
|
||||
motorConfig->motorPoleCount = 14; // Most brushes motors that we use are 14 poles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue