Skip to content

Commit e3e4a71

Browse files
committed
Add debug to PVT fail. Remove old RTC comments.
1 parent 2a77f9b commit e3e4a71

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,9 @@ void updateRTC()
687687
{
688688
//Set the internal system time
689689
//This is normally set with WiFi NTP but we will rarely have WiFi
690-
//rtc.setTime(gnssSecond, gnssMinute, gnssHour, gnssDay, gnssMonth, gnssYear); // 17th Jan 2021 15:24:30
690+
//rtc.setTime(gnssSecond, gnssMinute, gnssHour, gnssDay, gnssMonth, gnssYear);
691691
i2cGNSS.checkUblox();
692-
rtc.setTime(i2cGNSS.getSecond(), i2cGNSS.getMinute(), i2cGNSS.getHour(), i2cGNSS.getDay(), i2cGNSS.getMonth(), i2cGNSS.getYear()); // 17th Jan 2021 15:24:30
692+
rtc.setTime(i2cGNSS.getSecond(), i2cGNSS.getMinute(), i2cGNSS.getHour(), i2cGNSS.getDay(), i2cGNSS.getMonth(), i2cGNSS.getYear());
693693

694694
online.rtc = true;
695695

Firmware/RTK_Surveyor/System.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ bool configureUbloxModule()
131131
i2cGNSS.checkUblox(); //Regularly poll to get latest data and any RTCM
132132
i2cGNSS.checkCallbacks(); //Process any callbacks: ie, eventTriggerReceived
133133
delay(10);
134-
if (millis() - startTime > maxWait) break;
134+
if (millis() - startTime > maxWait)
135+
{
136+
log_d("PVT Update failed");
137+
break;
138+
}
135139
}
136140

137141
//The first thing we do is go to 1Hz to lighten any I2C traffic from a previous configuration

0 commit comments

Comments
 (0)