mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-03 03:11:57 +00:00
fix: review pass - storage unmount timeout, nav dial animates, dial text room, nearby name width, Simpson Enter with another key, GPS chip
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
e03fa7c084
commit
2ae55e97ac
@@ -71,7 +71,7 @@ inline void draw(DisplayDriver& d,
|
||||
int dial_r = 0, dial_x = 0, dial_y = 0;
|
||||
if (!wide) {
|
||||
const int top = d.listStart();
|
||||
const int tw = (dw > 9 * cw ? dw : 9 * cw) + 4; // the widest of the lines at the left
|
||||
const int tw = (dw > 12 * cw ? dw : 12 * cw) + 4; // the widest of the lines at the left
|
||||
int r_side = (d.height() - top) / 2 - lh / 2 - 1; // room over the ring for the rose's N
|
||||
if (r_side > (d.width() - tw) / 2 - 1) r_side = (d.width() - tw) / 2 - 1;
|
||||
const int text_bottom = y + dist_h + dist_gap + lines * step;
|
||||
|
||||
@@ -1459,7 +1459,7 @@ public:
|
||||
snprintf(filt, sizeof(filt), "[%s]", typeName(e.type));
|
||||
}
|
||||
const int name_right = lw - reserve - 2 - rw - display.getCharWidth();
|
||||
int mqr = display.drawTextEllipsized(tx, y, name_right - tx, filt, sel);
|
||||
int mqr = display.drawTextEllipsized(tx, y, name_right > tx ? name_right - tx : 0, filt, sel);
|
||||
if (sel && mqr > 0) mq_delay = mqr;
|
||||
|
||||
display.setColor(sel ? UIColor::window_bkg : UIColor::primary_txt);
|
||||
|
||||
@@ -175,7 +175,7 @@ private:
|
||||
const bool sleeping = sensors.isGpsDutySleeping();
|
||||
if (f.place(lh + 5)) { // the fix as a chip, satellites used / in view
|
||||
const char* st = !on ? "OFF" : sleeping ? "SLEEP" : !fix ? "NO FIX" : (g && g->fix_mode == 2) ? "2D FIX" : "3D FIX";
|
||||
info::chip(d, 1, f.at, st, on && fix);
|
||||
info::chip(d, 1, f.at, st, on && fix && !sleeping);
|
||||
#ifdef STATUS_HAS_SKY
|
||||
if (g) snprintf(a, sizeof(a), "%d/%d sats", skyview::usedCount(*g), g->count);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user