Skip to content

Commit 7aa7836

Browse files
authored
Merge pull request #385 from LeeLeahy2/mqtt-periodic
Periodic display of MQTT client data
2 parents 0f8d7ad + e9fac2b commit 7aa7836

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Firmware/RTK_Everywhere/System.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,11 @@ void printReports()
356356
lastPrintPosition = millis();
357357
}
358358

359-
if (settings.enablePrintRoverAccuracy && (millis() - lastPrintRoverAccuracy > 2000))
359+
if ((settings.enablePrintRoverAccuracy && (millis() - lastPrintRoverAccuracy > 2000))
360+
|| (PERIODIC_DISPLAY(PD_MQTT_CLIENT_DATA)))
360361
{
361362
lastPrintRoverAccuracy = millis();
363+
PERIODIC_CLEAR(PD_MQTT_CLIENT_DATA);
362364

363365
if (online.gnss == true)
364366
{
@@ -840,4 +842,4 @@ void trim(char *str)
840842
++p, --l;
841843

842844
memmove(str, p, l + 1);
843-
}
845+
}

0 commit comments

Comments
 (0)