Enable telemetry mirroring for any telemetry protocol
This commit is contained in:
@@ -293,8 +293,6 @@ void processCrossfireTelemetryData(uint8_t data, uint8_t module)
|
|||||||
uint8_t * rxBuffer = getTelemetryRxBuffer(module);
|
uint8_t * rxBuffer = getTelemetryRxBuffer(module);
|
||||||
uint8_t &rxBufferCount = getTelemetryRxBufferCount(module);
|
uint8_t &rxBufferCount = getTelemetryRxBufferCount(module);
|
||||||
|
|
||||||
telemetryMirrorSend(data);
|
|
||||||
|
|
||||||
if (rxBufferCount == 0 && data != RADIO_ADDRESS && data != UART_SYNC) {
|
if (rxBufferCount == 0 && data != RADIO_ADDRESS && data != UART_SYNC) {
|
||||||
TRACE("[XF] address 0x%02X error", data);
|
TRACE("[XF] address 0x%02X error", data);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -24,8 +24,6 @@
|
|||||||
|
|
||||||
void processFrskyTelemetryData(uint8_t data)
|
void processFrskyTelemetryData(uint8_t data)
|
||||||
{
|
{
|
||||||
telemetryMirrorSend(data);
|
|
||||||
|
|
||||||
if (pushFrskyTelemetryData(data)) {
|
if (pushFrskyTelemetryData(data)) {
|
||||||
if (IS_FRSKY_SPORT_PROTOCOL()) {
|
if (IS_FRSKY_SPORT_PROTOCOL()) {
|
||||||
sportProcessTelemetryPacket(telemetryRxBuffer);
|
sportProcessTelemetryPacket(telemetryRxBuffer);
|
||||||
|
|||||||
@@ -322,8 +322,6 @@ void processGhostTelemetryFrame()
|
|||||||
|
|
||||||
void processGhostTelemetryData(uint8_t data)
|
void processGhostTelemetryData(uint8_t data)
|
||||||
{
|
{
|
||||||
telemetryMirrorSend(data);
|
|
||||||
|
|
||||||
if (telemetryRxBufferCount == 0 && data != GHST_ADDR_RADIO) {
|
if (telemetryRxBufferCount == 0 && data != GHST_ADDR_RADIO) {
|
||||||
TRACE("[GH] address 0x%02X error", data);
|
TRACE("[GH] address 0x%02X error", data);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -108,6 +108,10 @@ void telemetryMirrorSend(uint8_t data)
|
|||||||
|
|
||||||
void processTelemetryData(uint8_t data)
|
void processTelemetryData(uint8_t data)
|
||||||
{
|
{
|
||||||
|
if (telemetryProtocol != PROTOCOL_TELEMETRY_MULTIMODULE) {
|
||||||
|
telemetryMirrorSend(data);
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(CROSSFIRE)
|
#if defined(CROSSFIRE)
|
||||||
if (telemetryProtocol == PROTOCOL_TELEMETRY_CROSSFIRE) {
|
if (telemetryProtocol == PROTOCOL_TELEMETRY_CROSSFIRE) {
|
||||||
processCrossfireTelemetryData(data, EXTERNAL_MODULE);
|
processCrossfireTelemetryData(data, EXTERNAL_MODULE);
|
||||||
|
|||||||
Reference in New Issue
Block a user