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())) {
 | 
					  if ((gps.time.age() < 1500) && (gps.time.isValid())) {
 | 
				
			||||||
    t = tmConvert_t(gps.date.year(), gps.date.month(), gps.date.day(),
 | 
					    t = tmConvert_t(gps.date.year(), gps.date.month(), gps.date.day(),
 | 
				
			||||||
                    gps.time.hour(), gps.time.minute(), gps.time.second());
 | 
					                    gps.time.hour(), gps.time.minute(), gps.time.second());
 | 
				
			||||||
    ESP_LOGD(TAG, "GPS time: %d/%d/%d %d:%d:%d", gps.date.year(),
 | 
					    ESP_LOGD(TAG, "GPS time: %d/%d/%d %d:%d:%d", year(t), month(t), day(t),
 | 
				
			||||||
             gps.date.month(), gps.date.day(), gps.time.hour(),
 | 
					             hour(t), minute(t), second(t));
 | 
				
			||||||
             gps.time.minute(), gps.time.second());
 | 
					 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    ESP_LOGW(TAG, "GPS has no confident time");
 | 
					    ESP_LOGW(TAG, "GPS has no confident time");
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user