mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Make inverter resource configurable
Add XXX comment about inverterConfig size Fixed non-USE_INVERTER case Moved inverter pin to serialPinConfig_t Various improvements Per @ledvinap ’s comments. Only include "drivers/serial.h" from inverter.h SERIAL_PORT_UART{4,5}, not _USART{4,5} Dah! Avoid magic number Prepare for SERIAL_PORT_IDENTIFIER_TO_INDEX change (#3015)
This commit is contained in:
parent
1ad0546af3
commit
9461672b46
6 changed files with 85 additions and 43 deletions
|
@ -339,7 +339,7 @@ void init(void)
|
|||
#endif
|
||||
/* temp until PGs are implemented. */
|
||||
#ifdef USE_INVERTER
|
||||
initInverters();
|
||||
initInverters(serialPinConfig());
|
||||
#endif
|
||||
|
||||
#ifdef TARGET_BUS_INIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue