CF/BF - Fix HoTT telemetry.CLFL_v2.0.2
commit4328b138e34f473ca407c3aa8e15f573f73777ac
authorHydra <dominic.clifton@cleanflight.com>
Sat, 22 Apr 2017 12:37:59 +0000 (22 13:37 +0100)
committerHydra <dominic.clifton@cleanflight.com>
Sat, 22 Apr 2017 12:37:59 +0000 (22 13:37 +0100)
tree1173a76779c65e87364b92041c3d678e42f3cfa0
parent5c0646359691c90069f57dc39a1eece726df221d
CF/BF - Fix HoTT telemetry.

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.
src/main/fc/cli.c
src/main/target/SPRACINGF3NEO/config.c
src/main/target/SPRACINGF4EVO/config.c
src/main/telemetry/hott.c
src/main/telemetry/smartport.c
src/main/telemetry/telemetry.c
src/main/telemetry/telemetry.h