Review sensor physID handling (#7374)

Review sensor physID handling
This commit is contained in:
3djc
2020-03-10 18:15:03 +01:00
committed by GitHub
parent e4f8735c7a
commit cc585950c3
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ uint8_t OpenTxSimulator::getSensorInstance(uint16_t id, uint8_t defaultValue)
if (isTelemetryFieldAvailable(i)) {
TelemetrySensor * sensor = &g_model.telemetrySensors[i];
if (sensor->id == id) {
return sensor->instance;
return sensor->frskyInstance.physID + 1;
}
}
}