From 9cb828bfbdb4fab21bc282f65d2302906fec5905 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 3 Feb 2019 20:18:54 +0100 Subject: [PATCH] gpsread.cpp: bugfix in debug time display --- src/gpsread.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gpsread.cpp b/src/gpsread.cpp index 27d12ca2..d6c58b99 100644 --- a/src/gpsread.cpp +++ b/src/gpsread.cpp @@ -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"); }