Skip to content

Commit 51986cf

Browse files
committed
Set next duration to 28 days.
Don't assume the current duration is the next duration.
1 parent 566e61d commit 51986cf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Firmware/RTK_Surveyor/menuPP.ino

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,13 @@ void mqttCallback(char *topic, byte *message, unsigned int length)
676676

677677
settings.pointPerfectCurrentKeyDuration =
678678
settings.pointPerfectNextKeyStart - settings.pointPerfectCurrentKeyStart - 1;
679-
settings.pointPerfectNextKeyDuration =
680-
settings.pointPerfectCurrentKeyDuration; // We assume next key duration is the same as current key duration
681-
// because we have to
679+
// settings.pointPerfectNextKeyDuration =
680+
// settings.pointPerfectCurrentKeyDuration; // We assume next key duration is the same as current key
681+
// duration
682+
// // because we have to
683+
684+
settings.pointPerfectNextKeyDuration = (1000LL * 60 * 60 * 24 * 28) - 1; // Assume next key duration is 28 days
685+
682686
if (settings.debugLBand == true)
683687
{
684688
systemPrintln();

0 commit comments

Comments
 (0)