Fixup DecoratedBarChart - incapsulate, not inherit

This commit is contained in:
Sassa NF
2024-09-30 07:59:34 +01:00
parent 6011c47f81
commit 30883386c4
3 changed files with 35 additions and 28 deletions
+3 -3
View File
@@ -366,7 +366,7 @@ void osdProcess()
}
#endif
BarChart *bar;
DecoratedBarChart *bar;
StackedChart stacked(display, 0, 0, 0, 0);
void init_radio()
@@ -1086,11 +1086,11 @@ void loop(void)
rr = LO_RSSI_THRESHOLD;
}
int updated = bar->updatePoint(freq, rr);
int updated = bar->bar.updatePoint(freq, rr);
if (first_run || ANIMATED_RELOAD)
{
bar->drawOne(updated);
bar->bar.drawOne(updated);
}
if (detected_at <= drone_detection_level)