[ersky9x] Bluetooth FrSky proxy added (ported from ersky9x, still untested, not part of the release)

This commit is contained in:
bsongis
2012-08-28 18:42:46 +00:00
parent 6606ed07d1
commit ce34047e12
11 changed files with 353 additions and 16 deletions
+5
View File
@@ -431,6 +431,11 @@ NOINLINE void processSerialData(uint8_t stat, uint8_t data)
static uint8_t numPktBytes = 0;
static uint8_t dataState = frskyDataIdle;
#if defined(BLUETOOTH)
// TODO if (g_model.bt_telemetry)
btPushByte(data);
#endif
#if !defined(PCBARM)
if (stat & ((1 << FE0) | (1 << DOR0) | (1 << UPE0))) {
// discard buffer and start fresh on any comms error