1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 19:40:31 +03:00

Added check to disable bidirectional Dshot when N-channel timers are used.

This commit is contained in:
Michael Keller 2021-07-28 00:23:30 +12:00
parent 864cf3f3b4
commit 1d555a6297
2 changed files with 15 additions and 4 deletions

View file

@ -1585,8 +1585,7 @@ static void cliSerialPassthrough(const char *cmdName, char *cmdline)
// pwmDisableMotors();
motorDisable();
delay(5);
unsigned motorsCount = getMotorCount();
for (unsigned i = 0; i < motorsCount; i++) {
for (unsigned i = 0; i < getMotorCount(); i++) {
const ioTag_t tag = motorConfig()->dev.ioTags[i];
if (tag) {
const timerHardware_t *timerHardware = timerGetByTag(tag);