From c83efd149ec8e8f8ddb46f4c6bcfe10742d4cc81 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 8 Apr 2022 11:41:17 +0200 Subject: [PATCH] small tweak --- linux/devices/GPSHyperionLinuxController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/devices/GPSHyperionLinuxController.cpp b/linux/devices/GPSHyperionLinuxController.cpp index 0947e396..20860211 100644 --- a/linux/devices/GPSHyperionLinuxController.cpp +++ b/linux/devices/GPSHyperionLinuxController.cpp @@ -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);