mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Revise ESCSERIAL to work with unified targets
Remove dependencies on timer definition order and base on the pins assigned as motor resources.
This commit is contained in:
parent
ef831e64b1
commit
4caa20bab2
6 changed files with 47 additions and 41 deletions
|
@ -3581,7 +3581,9 @@ static void cliEscPassthrough(char *cmdline)
|
|||
pch = strtok_r(NULL, " ", &saveptr);
|
||||
}
|
||||
|
||||
escEnablePassthrough(cliPort, escIndex, mode);
|
||||
if (!escEnablePassthrough(cliPort, &motorConfig()->dev, escIndex, mode)) {
|
||||
cliPrintErrorLinef("Error starting ESC connection");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue