Added more clear RTC handling and quality logging (#3691)

* Also refresh timestamp for "timeonly" fixed position nodes

* Added more clear RTC quality handling

* Fix clock drift from Phone GPS / NTP too
This commit is contained in:
Ben Meadors
2024-04-21 14:40:47 -05:00
committed by GitHub
parent 0406be82d2
commit 39bbf0d352
4 changed files with 39 additions and 11 deletions

View File

@@ -28,6 +28,9 @@ RTCQuality getRTCQuality();
bool perhapsSetRTC(RTCQuality q, const struct timeval *tv);
bool perhapsSetRTC(RTCQuality q, struct tm &t);
/// Return a string name for the quality
const char *RtcName(RTCQuality quality);
/// Return time since 1970 in secs. While quality is RTCQualityNone we will be returning time based at zero
uint32_t getTime(bool local = false);