Skip to content

Commit

Permalink
Do not update sensors when rssi is 0, align behavior with other telem…
Browse files Browse the repository at this point in the history
… protocol (opentx#6761)
  • Loading branch information
3djc authored and bsongis committed Sep 13, 2019
1 parent 5b390e3 commit fd13b32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions radio/src/telemetry/crossfire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fd13b32

Please sign in to comment.