Crossfire telemetry streaming fix (#6731)

Disable telemetryStreaming when xfire rssi is at 0
This commit is contained in:
3djc
2019-09-10 07:39:25 +02:00
committed by Bertrand Songis
parent e8bea090ca
commit f2adacc2cf
+8 -2
View File
@@ -134,8 +134,14 @@ void processCrossfireTelemetryFrame()
}
processCrossfireTelemetryValue(i, value);
if (i == RX_QUALITY_INDEX) {
telemetryData.rssi.set(value);
telemetryStreaming = TELEMETRY_TIMEOUT10ms;
if (value) {
telemetryData.rssi.set(value);
telemetryStreaming = TELEMETRY_TIMEOUT10ms;
}
else {
telemetryData.rssi.reset();
telemetryStreaming = 0;
}
}
}
}