1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

Telemetry now coming

This commit is contained in:
Bertrand Songis 2019-02-22 17:17:13 +01:00
parent 6cfd65a538
commit 58190570f5
2 changed files with 10 additions and 1 deletions

View file

@ -121,6 +121,11 @@ void processBindFrame(uint8_t module, uint8_t * frame)
}
}
void processTelemetryFrame(uint8_t module, uint8_t * frame)
{
sportProcessTelemetryPacketWithoutCrc(&frame[2]);
}
void processSpectrumFrame(uint8_t module, uint8_t * frame)
{
if (moduleSettings[module].mode != MODULE_MODE_SPECTRUM_ANALYSER) {
@ -153,6 +158,10 @@ void processRadioFrame(uint8_t module, uint8_t * frame)
case PXX2_TYPE_ID_BIND:
processBindFrame(module, frame);
break;
case PXX2_TYPE_ID_TELEMETRY:
processTelemetryFrame(module, frame);
break;
}
}