1
0
Fork 0
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:
blckmn 2018-05-06 09:37:19 +10:00
parent aad6efdf03
commit 88ed243d32
4 changed files with 5 additions and 5 deletions

View file

@ -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