gpsread.cpp: bugfix in debug time display
This commit is contained in:
parent
06a1775779
commit
9cb828bfbd
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user