Skip to content

Commit 3831607

Browse files
committed
Fix 'Valid from WNO' GPS week calculation
Remove extra 28 days from thingstream Epoch calculation. This was setting the key expiration date incorrectly. This was causing the next L-Band key to fail to be loaded.
1 parent ec4432c commit 3831607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Surveyor/menuPP.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ int daysFromEpoch(long long endEpoch)
712712
// Even though we are adding 18 leap seconds, the ToW is still coming out as 518400 instead of 518418 (midnight)
713713
long long thingstreamEpochToGPSEpoch(long long startEpoch, long long duration)
714714
{
715-
long long epoch = startEpoch + duration;
715+
long long epoch = startEpoch;
716716
epoch /= 1000; // Convert PointPerfect ms Epoch to s
717717

718718
// Convert Unix Epoch time from PointPerfect to GPS Time Of Week needed for UBX message

0 commit comments

Comments
 (0)