fix nodeinfo stored times (I think) for @lgoix

This commit is contained in:
Kevin Hester
2020-10-09 10:01:13 +08:00
parent 1b6e8e36d3
commit 4a70ba1f7a
5 changed files with 13 additions and 13 deletions

View File

@@ -71,7 +71,7 @@ uint32_t getTime()
return ((millis() - timeStartMsec) / 1000) + zeroOffsetSecs;
}
uint32_t getValidTime()
uint32_t getValidTime(RTCQuality minQuality)
{
return (currentQuality >= RTCQualityFromNet) ? getTime() : 0;
return (currentQuality >= minQuality) ? getTime() : 0;
}