1
0
Fork 0
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:
Bruce Luckcuck 2019-03-29 08:32:47 -04:00
parent ef831e64b1
commit 4caa20bab2
6 changed files with 47 additions and 41 deletions

View file

@ -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