Do not update sensors when rssi is 0, align behavior with other telem protocol (#6761)

This commit is contained in:
3djc
2019-09-13 14:17:27 +02:00
committed by Bertrand Songis
parent 5b390e3050
commit fd13b3268c
+3
View File
@@ -68,6 +68,9 @@ const CrossfireSensor & getCrossfireSensor(uint8_t id, uint8_t subId)
void processCrossfireTelemetryValue(uint8_t index, int32_t value)
{
if(!TELEMETRY_STREAMING())
return;
const CrossfireSensor & sensor = crossfireSensors[index];
setTelemetryValue(PROTOCOL_TELEMETRY_CROSSFIRE, sensor.id, 0, sensor.subId, value, sensor.unit, sensor.precision);
}