only show time on OLED if we have a valid UTC clock

This commit is contained in:
Kevin Hester
2021-03-20 10:22:06 +08:00
parent 620d336e55
commit 2b74260e2b
4 changed files with 89 additions and 58 deletions
+5 -1
View File
@@ -27,4 +27,8 @@ uint32_t getTime();
/// Return time since 1970 in secs. If quality is RTCQualityNone return zero
uint32_t getValidTime(RTCQuality minQuality);
void readFromRTC();
void readFromRTC();
#define SEC_PER_DAY 86400
#define SEC_PER_HOUR 3600
#define SEC_PER_MIN 60