From b36c970a2deafebcec72760caccffbf8929bd967 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Thu, 14 May 2026 17:45:26 +0200 Subject: [PATCH] fix: auto-advert indicator - 300ms refresh, background shifted 1px left Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/UITask.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index 96ad456c..9f7cc468 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -1802,7 +1802,7 @@ public: int spaceW = display.getTextWidth(" "); int aW = display.getTextWidth("A"); int ax = display.getTextWidth(filtered_name) + spaceW; - display.fillRect(ax, 0, aW + 1, 8); + display.fillRect(ax - 1, 0, aW + 2, 8); display.setColor(DisplayDriver::DARK); display.setCursor(ax, 0); display.print("A"); @@ -2146,9 +2146,9 @@ public: bool auto_adv = _node_prefs && _node_prefs->advert_auto_interval_sec > 0; if (_page == HomePage::CLOCK) { bool show_sec = !_node_prefs || !_node_prefs->clock_hide_seconds; - return (auto_adv || show_sec) ? 1000 : 60000; + return auto_adv ? 300 : (show_sec ? 1000 : 60000); } - return auto_adv ? 1000 : 5000; + return auto_adv ? 300 : 5000; } bool handleInput(char c) override {