small tweak
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2022-04-08 11:41:17 +02:00
parent 6ae9e539a6
commit c83efd149e
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -194,9 +194,9 @@ void GPSHyperionLinuxController::readGpsDataFromGpsd() {
if (not utility::timeSanityCheck()) {
#if OBSW_VERBOSE_LEVEL >= 1
time_t timeRaw = time.tv_sec;
std::tm *time = std::gmtime(&timeRaw);
std::tm *timeTm = std::gmtime(&timeRaw);
sif::info << "Setting invalid system time from GPS data directly: "
<< std::put_time(time, "%c %Z") << std::endl;
<< std::put_time(timeTm, "%c %Z") << std::endl;
#endif
// For some reason, the clock needs to be somewhat correct for NTP to work. Really dumb..
Clock::setClock(&time);