Removed this as it prevents us from having many RX streaming in the same time
This commit is contained in:
@@ -479,25 +479,6 @@ int lastUsedTelemetryIndex()
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool isValidIdAndInstance(uint16_t id, uint8_t instance)
|
||||
{
|
||||
bool sensorFound = false;
|
||||
|
||||
for (int index=0; index<MAX_TELEMETRY_SENSORS; index++) {
|
||||
TelemetrySensor & telemetrySensor = g_model.telemetrySensors[index];
|
||||
if (telemetrySensor.type == TELEM_TYPE_CUSTOM && telemetrySensor.id == id) {
|
||||
sensorFound = true;
|
||||
if (telemetrySensor.instance == instance || g_model.ignoreSensorIds)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (sensorFound)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int setTelemetryValue(TelemetryProtocol protocol, uint16_t id, uint8_t subId, uint8_t instance, int32_t value, uint32_t unit, uint32_t prec)
|
||||
{
|
||||
bool available = false;
|
||||
|
||||
Reference in New Issue
Block a user