Skip to content

Commit 1824402

Browse files
committed
Don't check for keys if 28 days remain
1 parent 114089f commit 1824402

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Firmware/RTK_Everywhere/menuPP.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,10 @@ void provisioningUpdate()
12731273
if (settings.debugPpCertificate)
12741274
systemPrintf("Days until keys expire: %d\r\n", daysRemaining);
12751275

1276-
if (daysRemaining > 28)
1276+
// PointPerfect returns keys that expire at midnight so the primary key
1277+
// is still available with 0 days left, and a Next Key that has 28 days left
1278+
// If there are 28 days remaining, PointPerfect won't have new keys.
1279+
if (daysRemaining >= 28)
12771280
provisioningSetState(PROVISIONING_KEYS_REMAINING); // Don't need new keys
12781281
else
12791282
provisioningSetState(PROVISIONING_CHECK_ATTEMPT); // Do need new keys

0 commit comments

Comments
 (0)