Skip to content

Commit 5d7a211

Browse files
committed
Enable/disable printing of Rover Accuracy messages
1 parent d869176 commit 5d7a211

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Firmware/RTK_Surveyor/Rover.ino

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,12 @@ void updateAccuracyLEDs()
269269
{
270270
if (horizontalAccuracy > 0)
271271
{
272-
Serial.print("Rover Accuracy (m): ");
273-
Serial.print(horizontalAccuracy, 4); // Print the accuracy with 4 decimal places
274-
Serial.println();
272+
if (settings.enablePrintRoverAccuracy)
273+
{
274+
Serial.print("Rover Accuracy (m): ");
275+
Serial.print(horizontalAccuracy, 4); // Print the accuracy with 4 decimal places
276+
Serial.println();
277+
}
275278

276279
if (productVariant == RTK_SURVEYOR)
277280
{
@@ -301,7 +304,7 @@ void updateAccuracyLEDs()
301304
}
302305
}
303306
}
304-
else
307+
else if (settings.enablePrintRoverAccuracy)
305308
{
306309
Serial.print("Rover Accuracy: ");
307310
Serial.print(horizontalAccuracy);

0 commit comments

Comments
 (0)