From 73a31f58a90e19371f66331ff684836322cbafee Mon Sep 17 00:00:00 2001 From: Nathan Seidle Date: Thu, 18 Jul 2024 10:38:30 -0600 Subject: [PATCH] Suppress debug prints in menu system. --- Firmware/RTK_Everywhere/Tasks.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Firmware/RTK_Everywhere/Tasks.ino b/Firmware/RTK_Everywhere/Tasks.ino index 76402334b..4db3ed1e4 100644 --- a/Firmware/RTK_Everywhere/Tasks.ino +++ b/Firmware/RTK_Everywhere/Tasks.ino @@ -270,17 +270,16 @@ void sendGnssBuffer() { if (gnssPushRawData(bluetoothOutgoingToGnss, bluetoothOutgoingToGnssHead)) { - if (settings.debugCorrections || PERIODIC_DISPLAY(PD_ZED_DATA_TX)) + if ((settings.debugCorrections || PERIODIC_DISPLAY(PD_ZED_DATA_TX)) && !inMainMenu) { PERIODIC_CLEAR(PD_ZED_DATA_TX); systemPrintf("Sent %d BT bytes to GNSS\r\n", bluetoothOutgoingToGnssHead); } - // log_d("Pushed %d bytes RTCM to GNSS", bluetoothOutgoingToGnssHead); } } else { - if (settings.debugCorrections || PERIODIC_DISPLAY(PD_ZED_DATA_TX)) + if ((settings.debugCorrections || PERIODIC_DISPLAY(PD_ZED_DATA_TX)) && !inMainMenu) { PERIODIC_CLEAR(PD_ZED_DATA_TX); systemPrintf("%d BT bytes NOT sent due to priority\r\n", bluetoothOutgoingToGnssHead);