Skip to content

Commit 9a7dbc6

Browse files
committed
No loop delay in NTP mode
1 parent e88b483 commit 9a7dbc6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,13 @@ void loop()
12431243
DMW_c("updateProvisioning");
12441244
updateProvisioning(); // Check if we should attempt to connect to PointPerfect to get keys / certs / correction topic etc.
12451245

1246-
delay(10); // A small delay prevents panic if no other I2C or functions are called
1246+
loopDelay(); // A small delay prevents panic if no other I2C or functions are called
1247+
}
1248+
1249+
void loopDelay()
1250+
{
1251+
if (systemState != STATE_NTPSERVER_SYNC) // No delay in NTP mode
1252+
delay(10);
12471253
}
12481254

12491255
// Create or close files as needed (startup or as the user changes settings)

0 commit comments

Comments
 (0)