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)
Two issues:
1 - failure to work on softserial ports.
The TX pin was not allocated due to the initial port mode.
HoTT telemetry is different in that it changes the serial port mode
between sending and receiving.
This change opens the port in RX/TX mode so that both RX and TX pins are
initally allocated.
Test scenario:
* HoTT on SoftSerial 1
* Diode connecting between RX and TX pins.
2 - bidirectional hardware ports were not supported.
Renamed `sport_halfduplex` to `tlm_halfduplex`. The setting is now used
by sport and hott telemetry.
CF/BF - Save 1280 bytes of flash and delete over 300 lines of code by
removing giant switch statement and static variables in the CLI.
fix
CF/BF - Remove some conditional code because there is a copy of every PG
so it will always be found*.
* unless a developer makes an error in the value table by specifying an
invalid PG.
CF/BF - Remove final usages of getCurrentAndDefaultConfigs to save more
flash space.
CF/BF - Change CLI command 'dump showdefaults' to simply 'dump defaults'.
* This will save a few bytes of flash space due to string re-use of the
'defaults' string.
CF/BF - Save a few more bytes by re-using the 'defaults' string again.
CF/BF - Fix CLI not being size optimized.
* The file had moved but the makefile was not updated to reflect that.
CF/BF - Add 'fc_init.c' and 'settings.c' to the size optimizations list.
CF/BF - Add some config source files to the size-optimized list.
CF/BF - De-duplicate CR/LF code by using appropriate methods. Promote
additional string re-use.
* This saves quite a lot of space when the file is size optimized, but grows it otherwise.
CF/BF - Further flash savings by removing more CR/LF on the
cliDump/cliDefaultPrintf format strings.
* It turns out that all the format strings ended in CR+LF so they could
all be removed.
CF/BF - Fix LF+CR being used instead of CR+LF for further flash savings.