diff --git a/src/overlays/overlays.cpp b/src/overlays/overlays.cpp index bd0e370f0..acc0288a5 100644 --- a/src/overlays/overlays.cpp +++ b/src/overlays/overlays.cpp @@ -36,9 +36,10 @@ void drawBattery(uint16_t x, uint16_t y) { #ifdef OSW_FEATURE_WIFI void drawWiFi(uint16_t x, uint16_t y) { + Graphics2DPrint *gfx = OswHal::getInstance()->gfx(); if (OswServiceAllTasks::wifi.isWiFiEnabled()) { for (uint8_t i = 0; i < OswServiceAllTasks::wifi.getSignalQuality() / 20; i++) { - OswHal::getInstance()->gfx()->fillFrame(x + 3 * i, y + 12 - i * 2, 2, i * 2, OswUI::getInstance()->getForegroundColor()); // outer frame + gfx->fillFrame(x + 3 * i, y + 12 - i * 2, 2, i * 2, OswUI::getInstance()->getForegroundColor()); // outer frame } } }