mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-23 15:38:14 -08:00
Adjust time format for GPS data seconds
This commit is contained in:
@@ -478,7 +478,10 @@ String GpsInterface::dt_string_from_gps(){
|
||||
datetime += ":";
|
||||
datetime += nmea.getMinute();
|
||||
datetime += ":";
|
||||
datetime += nmea.getSecond();
|
||||
uint8_t seconds = nmea.getSecond();
|
||||
if (seconds < 10)
|
||||
datetime += "0";
|
||||
datetime += seconds;
|
||||
}
|
||||
return datetime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user