Telemetry forward through Bluetooth

This commit is contained in:
Bertrand Songis
2019-04-15 18:15:51 +02:00
parent d0c72be9e6
commit 0a2d2a9b99
2 changed files with 10 additions and 7 deletions
+8
View File
@@ -157,6 +157,14 @@ void sportProcessTelemetryPacketWithoutCrc(uint8_t origin, const uint8_t * packe
uint16_t dataId = *((uint16_t *)(packet+2));
uint32_t data = SPORT_DATA_S32(packet);
#if defined(BLUETOOTH)
if (g_eeGeneral.bluetoothMode == BLUETOOTH_TELEMETRY && bluetoothState == BLUETOOTH_STATE_CONNECTED) {
for (uint8_t i = 0; i < sizeof(SportTelemetryPacket); i++) {
bluetoothForwardTelemetry(packet[i]);
}
}
#endif
if (primId == DATA_FRAME) {
uint8_t instance = physicalId + (origin << 5);
if (dataId == RSSI_ID) {