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

This commit is contained in:
3djc
2019-09-16 08:34:22 +02:00
parent 4fea9d8f23
commit 6d2a2298ce
+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);
}