fix(l2): no remount while the card is a USB drive, vector packs locked across cores, time zone list, noise sweep restore

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-12 19:30:46 +02:00
co-authored by Claude Opus 5.5
parent 57db27512d
commit 2b9e013071
10 changed files with 81 additions and 22 deletions
@@ -83,10 +83,9 @@ void UITask::mapRegionAction(uint8_t act) {
}
case A_DELETE: {
if (!tapConfirmed(s_del_lbl, "Delete?")) return;
char path[80];
snprintf(path, sizeof(path), "%s/%s", mapview::VECTOR_ROOT, p.file);
mapview::s_vpacks.closeOpen();
remove(path);
char file[sizeof(p.file)];
snprintf(file, sizeof(file), "%s", p.file); // p is the list's: read again by removePack()
mapview::s_vpacks.removePack(file);
mapview::s_vector.available(); // lists the packs again, forgets the data read
mapview::labels::flush();
mapview::s_cache.invalidate();