use RTC time for my timestamp (works across deep sleep)

This commit is contained in:
geeksville
2020-02-19 07:58:51 -08:00
parent ae023a57e8
commit 67e0f5c184
6 changed files with 49 additions and 11 deletions
+2 -2
View File
@@ -33,6 +33,8 @@
#include "screen.h"
#include "NodeDB.h"
#include "Periodic.h"
#include "esp32/pm.h"
#include "esp_pm.h"
#ifdef T_BEAM_V10
#include "axp20x.h"
@@ -147,8 +149,6 @@ void doDeepSleep(uint64_t msecToWake)
esp_deep_sleep_start(); // TBD mA sleep current (battery)
}
#include "esp32/pm.h"
#include "esp_pm.h"
/**
* enable modem sleep mode as needed and available. Should lower our CPU current draw to an average of about 20mA.