fix: no flash writes while typing, and a clock that survives a power loss

Contacts and paths are saved a while after the change and never while the
user is active, so a send no longer stutters on the 53 KB contact rewrite
(a path that came back unchanged isn't written at all). The clock is saved
every 30 minutes and restored no earlier than the firmware's build day.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-08 23:41:32 +02:00
co-authored by Claude Opus 5.5
parent aaf35351d7
commit 9ef7d5d981
5 changed files with 70 additions and 17 deletions
@@ -3663,6 +3663,7 @@ bool UITask::addWaypoint(int32_t lat, int32_t lon, const char* label) {
}
char UITask::checkDisplayOn(char c) {
the_mesh.noteUserInput();
if (_display != NULL) {
if (!_display->isOn()) {
_display->turnOn();