gpsread.cpp: bugfix in debug time display

This commit is contained in:
Klaus K Wilting 2019-02-03 20:18:54 +01:00
parent 06a1775779
commit 9cb828bfbd

View File

@ -73,9 +73,8 @@ time_t get_gpstime(void) {
if ((gps.time.age() < 1500) && (gps.time.isValid())) {
t = tmConvert_t(gps.date.year(), gps.date.month(), gps.date.day(),
gps.time.hour(), gps.time.minute(), gps.time.second());
ESP_LOGD(TAG, "GPS time: %d/%d/%d %d:%d:%d", gps.date.year(),
gps.date.month(), gps.date.day(), gps.time.hour(),
gps.time.minute(), gps.time.second());
ESP_LOGD(TAG, "GPS time: %d/%d/%d %d:%d:%d", year(t), month(t), day(t),
hour(t), minute(t), second(t));
} else {
ESP_LOGW(TAG, "GPS has no confident time");
}