Skip to content

Commit

Permalink
Fixed a bug in AFHDS2 Alt decoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli authored and pfeerick committed Jul 25, 2023
1 parent fb80b2c commit 0c57606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/telemetry/flysky_ibus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void processFlySkySensor(const uint8_t * packet, uint8_t type)
telemetryData.rssi.set(value);
if(value>0) telemetryStreaming = TELEMETRY_TIMEOUT10ms;
}
else if (id == AFHDS2A_ID_PRES && value) {
else if (id == SENSOR_TYPE_PRES && value) {
// Extract temperature to a new sensor
setTelemetryValue(PROTOCOL_TELEMETRY_FLYSKY_IBUS, id | 0x100, 0, instance, ((value >> 19) - 400), UNIT_CELSIUS, 1);
// Extract alt to a new sensor
Expand Down

0 comments on commit 0c57606

Please sign in to comment.