mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-01 01:36:12 +00:00
fix: auto-advert indicator - 300ms refresh, background shifted 1px left
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
e205f3712d
commit
b36c970a2d
@@ -1802,7 +1802,7 @@ public:
|
|||||||
int spaceW = display.getTextWidth(" ");
|
int spaceW = display.getTextWidth(" ");
|
||||||
int aW = display.getTextWidth("A");
|
int aW = display.getTextWidth("A");
|
||||||
int ax = display.getTextWidth(filtered_name) + spaceW;
|
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.setColor(DisplayDriver::DARK);
|
||||||
display.setCursor(ax, 0);
|
display.setCursor(ax, 0);
|
||||||
display.print("A");
|
display.print("A");
|
||||||
@@ -2146,9 +2146,9 @@ public:
|
|||||||
bool auto_adv = _node_prefs && _node_prefs->advert_auto_interval_sec > 0;
|
bool auto_adv = _node_prefs && _node_prefs->advert_auto_interval_sec > 0;
|
||||||
if (_page == HomePage::CLOCK) {
|
if (_page == HomePage::CLOCK) {
|
||||||
bool show_sec = !_node_prefs || !_node_prefs->clock_hide_seconds;
|
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 {
|
bool handleInput(char c) override {
|
||||||
|
|||||||
Reference in New Issue
Block a user