Telemetry screen cosmetics

This commit is contained in:
Bertrand Songis
2019-08-29 11:51:11 +02:00
parent fa0ffd6d42
commit 3f9a863b00
9 changed files with 70 additions and 46 deletions
+11
View File
@@ -121,6 +121,17 @@ bool isTelemetryFieldAvailable(int index)
return sensor.isAvailable();
}
uint8_t getTelemetrySensorsCount()
{
uint8_t count = 0;
for (auto telemetrySensor : g_model.telemetrySensors) {
if (telemetrySensor.isAvailable()) {
++count;
}
}
return count;
}
bool isTelemetryFieldComparisonAvailable(int index)
{
if (!isTelemetryFieldAvailable(index))