mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
fix(l2): the GPS switch no longer jumps
UiCore::setGpsEnabled() wrote the prefs to flash at once, which stalled the loop mid-animation. It takes save = false now (default true, the L1 unchanged); the L2 marks the prefs changed and writes them on leaving the screen, as its other switches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1965,7 +1965,8 @@ void UITask::refreshStatusBar() {
|
||||
}
|
||||
|
||||
void UITask::setGps(bool on) {
|
||||
if (!_core->setGpsEnabled(on)) { showToast("No GPS on this device"); return; }
|
||||
if (!_core->setGpsEnabled(on, false)) { showToast("No GPS on this device"); return; }
|
||||
prefsSave(); // written on leaving the screen, as the other switches
|
||||
refreshStatusBar();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user