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:
Jakub
2026-10-26 10:12:56 +01:00
co-authored by Claude Sonnet 5.5
parent e03fa7c084
commit 2ae55e97ac
6 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -494,13 +494,14 @@ void UITask::refreshNavBar() {
if (!set) return;
setTextFmt(_nav_title, "%s %s", navmap::s_tb.active() ? LV_SYMBOL_LOOP : person ? UI_SYMBOL_USERS : UI_SYMBOL_FLAG,
name);
if (navmap::s_dial) lv_obj_add_flag(navmap::s_dial, LV_OBJ_FLAG_HIDDEN); // setDial() below shows it again
if (!pos) {
if (navmap::s_dial) lv_obj_add_flag(navmap::s_dial, LV_OBJ_FLAG_HIDDEN);
setText(_nav_info, "Position unknown (not shared recently)");
return;
}
int32_t lat, lon;
if (!_core->course.currentLocation(lat, lon)) {
if (navmap::s_dial) lv_obj_add_flag(navmap::s_dial, LV_OBJ_FLAG_HIDDEN);
setText(_nav_info, _core->gpsEnabled() || !_core->gpsAvailable()
? "Waiting for a GPS fix..." : "GPS is off - tap the crosshair to turn it on");
return;
@@ -59,7 +59,8 @@ static void stopWalk() {
// be reading off it (from a map left open, or a prefetch), then close the map
// pack it reads from.
static void releaseMapFiles() {
while (mapview::s_cache.busy()) { delay(5); mapview::pollTiles(); }
const uint32_t t0 = millis(); // a task stuck on a failing card mustn't hang the UI
while (mapview::s_cache.busy() && millis() - t0 < 3000) { delay(5); mapview::pollTiles(); }
mapview::s_vpacks.closeOpen();
}