mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
use driver independent motor count
This commit is contained in:
parent
db66284567
commit
ccf7ce964a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue