1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +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

@ -190,7 +190,7 @@ uint8_t escPortIndex;
#ifdef USE_ESCSERIAL
static void mspEscPassthroughFn(serialPort_t *serialPort)
{
escEnablePassthrough(serialPort, escPortIndex, escMode);
escEnablePassthrough(serialPort, &motorConfig()->dev, escPortIndex, escMode);
}
#endif