Skip to content

Commit

Permalink
Suppress debug prints in menu system.
Browse files Browse the repository at this point in the history
  • Loading branch information
nseidle committed Jul 18, 2024
1 parent 4e43db0 commit 73a31f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Firmware/RTK_Everywhere/Tasks.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 73a31f5

Please sign in to comment.