[Horus] Prevent Value widget from being invisible when telemetry isn't available and it's displaying a telemetry value
This commit is contained in:
@@ -87,10 +87,7 @@ void ValueWidget::refresh()
|
|||||||
|
|
||||||
if (field >= MIXSRC_FIRST_TELEM) {
|
if (field >= MIXSRC_FIRST_TELEM) {
|
||||||
TelemetryItem & telemetryItem = telemetryItems[(field-MIXSRC_FIRST_TELEM)/3]; // TODO macro to convert a source to a telemetry index
|
TelemetryItem & telemetryItem = telemetryItems[(field-MIXSRC_FIRST_TELEM)/3]; // TODO macro to convert a source to a telemetry index
|
||||||
if (!telemetryItem.isAvailable()) {
|
if (!telemetryItem.isAvailable() || telemetryItem.isOld()) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
else if (telemetryItem.isOld()) {
|
|
||||||
color = ALARM_COLOR;
|
color = ALARM_COLOR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user