Enable dump xfire telem using BT

This commit is contained in:
3djc
2019-09-05 13:45:33 +02:00
parent 5d19f71177
commit bcaeeed6ce
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -212,6 +212,11 @@ void processCrossfireTelemetryData(uint8_t data)
if (telemetryRxBufferCount > 4) {
uint8_t length = telemetryRxBuffer[1];
if (length + 2 == telemetryRxBufferCount) {
#if defined(BLUETOOTH)
if (g_eeGeneral.bluetoothMode == BLUETOOTH_TELEMETRY && bluetooth.state == BLUETOOTH_STATE_CONNECTED) {
bluetooth.write(telemetryRxBuffer, telemetryRxBufferCount);
}
#endif
processCrossfireTelemetryFrame();
telemetryRxBufferCount = 0;
}