diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index 4d76f3d..84cb2f0 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -376,7 +376,7 @@ void processGPS() logger.dataTime = millis(); gps.get_datetime(&date, &time, 0); - if (date != (byte)gpsDate) { + if ((byte)date != (byte)gpsDate) { // log date only if it's changed logger.logData(PID_GPS_DATE, (int32_t)date); gpsDate = (byte)date;