mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-30 16:58:12 +00:00
feat: polish status bar and home screen layout
- Move "A" (auto-advert) indicator left of BT "B" in status bar - Ellipsize node name to fit available width instead of overflowing - Shrink A and B background rectangles by 1px right, 2px bottom - Change A blink to 2s on / 2s off at 1000ms refresh rate - Auto-advert sends GPS position directly via createSelfAdvert/sendZeroHop - Align Settings and Tools home page titles to y=22, same as Messages Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2206,7 +2206,10 @@ void MyMesh::loop() {
|
||||
}
|
||||
|
||||
if (_prefs.advert_auto_interval_sec > 0 && millisHasNowPassed(_next_auto_advert_ms)) {
|
||||
advert();
|
||||
mesh::Packet* pkt = (sensors.node_lat != 0 || sensors.node_lon != 0)
|
||||
? createSelfAdvert(_prefs.node_name, sensors.node_lat, sensors.node_lon)
|
||||
: createSelfAdvert(_prefs.node_name);
|
||||
if (pkt) sendZeroHop(pkt);
|
||||
_next_auto_advert_ms = futureMillis(_prefs.advert_auto_interval_sec * 1000UL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user