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:
parent
6cfd65a538
commit
58190570f5
2 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue