Add RTC time persistence to flash

Save last known unix timestamp to /rtc_save on shutdown and restore it
on startup, so the clock shows correct time immediately after restart
without waiting for GPS fix.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-10 18:23:25 +02:00
co-authored by Claude Sonnet 4.6
parent 6cf8544979
commit 0fc12b60fe
5 changed files with 25 additions and 0 deletions
@@ -986,6 +986,7 @@ void UITask::setCurrScreen(UIScreen* c) {
hardware-agnostic pre-shutdown activity should be done here
*/
void UITask::shutdown(bool restart){
the_mesh.saveRTCTime();
#ifdef PIN_BUZZER
/* note: we have a choice here -