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:
parent
ef831e64b1
commit
4caa20bab2
6 changed files with 47 additions and 41 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue