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:
parent
864cf3f3b4
commit
1d555a6297
2 changed files with 15 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue