From b23d540ba1aff0b9ea6c4dfa783ee4bf4bce40d8 Mon Sep 17 00:00:00 2001 From: IoTThinks Date: Sat, 6 Dec 2025 09:09:34 +0700 Subject: [PATCH] To reset time back to 15 May 2024 after software reboot in MeshCore App --- src/helpers/ESP32Board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/ESP32Board.h b/src/helpers/ESP32Board.h index e566f9293..470691911 100644 --- a/src/helpers/ESP32Board.h +++ b/src/helpers/ESP32Board.h @@ -94,7 +94,7 @@ class ESP32RTCClock : public mesh::RTCClock { ESP32RTCClock() { } void begin() { esp_reset_reason_t reason = esp_reset_reason(); - if (reason == ESP_RST_POWERON) { + if (reason == ESP_RST_POWERON || reason == ESP_RST_SW) { // start with some date/time in the recent past struct timeval tv; tv.tv_sec = 1715770351; // 15 May 2024, 8:50pm