- implement generic support for on-device battery powered RTC Modules.

- implement support for I2C RV-3028 based RTC modules like the RAK12002
- pretty print some debug timestamps
This commit is contained in:
Thomas Göttgens
2022-04-27 11:05:08 +02:00
parent 3a9086dfc5
commit 9e97fac252
13 changed files with 72 additions and 13 deletions

View File

@@ -65,7 +65,7 @@ The Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of s
t.tm_year = d.year() - 1900;
t.tm_isdst = false;
if (t.tm_mon > -1){
DEBUG_MSG("NMEA GPS time %d-%d-%d %d:%d:%d\n", d.year(), d.month(), t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec);
DEBUG_MSG("NMEA GPS time %02d-%02d-%02d %02d:%02d:%02d\n", d.year(), d.month(), t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec);
perhapsSetRTC(RTCQualityGPS, t);
return true;
} else