use driver independent motor count
This commit is contained in:
parent
db66284567
commit
ccf7ce964a
|
@ -210,7 +210,7 @@ void dshotCommandWrite(uint8_t index, uint8_t motorCount, uint8_t command, bool
|
|||
if (commandControl) {
|
||||
commandControl->repeats = repeats;
|
||||
commandControl->delayAfterCommandUs = delayAfterCommandUs;
|
||||
for (unsigned i = 0; i < dshotPwmDevice.count; i++) {
|
||||
for (unsigned i = 0; i < motorCount; i++) {
|
||||
if (index == i || index == ALL_MOTORS) {
|
||||
commandControl->command[i] = command;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue