Skip to content

Commit 214cb27

Browse files
committed
Perform key attempt after 60s if ENABLE_DEVELOPER
1 parent c9040d9 commit 214cb27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Firmware/RTK_Everywhere/States.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ void stateUpdate()
574574
}
575575

576576
// When did we last try to get keys? Attempt every 24 hours
577-
else if (rtc.getEpoch() - settings.lastKeyAttempt > (60 * 60 * 24))
577+
else if (rtc.getEpoch() - settings.lastKeyAttempt > ( ENABLE_DEVELOPER ? 10 : (60 * 60 * 24)))
578578
{
579579
settings.lastKeyAttempt = rtc.getEpoch(); // Mark it
580580
recordSystemSettings(); // Record these settings to unit
@@ -591,7 +591,7 @@ void stateUpdate()
591591
{
592592
displayNoSSIDs(1000);
593593
changeState(
594-
STATE_KEYS_DAYS_REMAINING); // We have valid keys, we've already tried today. No need to try again.
594+
STATE_KEYS_DAYS_REMAINING);
595595
}
596596

597597
// Added to allow user to select GetKeys from the display
@@ -601,7 +601,7 @@ void stateUpdate()
601601
lBandForceGetKeys = false;
602602

603603
if (settings.debugPpCertificate)
604-
systemPrintln("Force key update. Starting WiFi");
604+
systemPrintln("Force key update");
605605

606606
changeState(STATE_KEYS_PROVISION_STARTED);
607607
}

0 commit comments

Comments
 (0)