1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

Fixes #2810 - Reject new sensor option

This commit is contained in:
Bertrand Songis 2015-09-05 11:44:26 +02:00
parent 2a2650376c
commit b54123f8a3
21 changed files with 186 additions and 81 deletions

View file

@ -491,11 +491,11 @@ void setTelemetryValue(TelemetryProtocol protocol, uint16_t id, uint8_t instance
if (telemetrySensor.type == TELEM_TYPE_CUSTOM && telemetrySensor.id == id && (telemetrySensor.instance == instance || g_model.ignoreSensorIds)) {
telemetryItems[index].setValue(telemetrySensor, value, unit, prec);
available = true;
// we continue search here, because more than one sensor can have the same id and instance
// we continue search here, because sensors can share the same id and instance
}
}
if (available) {
if (available || g_model.rejectNewSensors) {
return;
}