Skip to content

Commit 5f6b007

Browse files
committed
Suppress debug prints in mainmenu
1 parent 94e19f1 commit 5f6b007

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Firmware/RTK_Surveyor/ESPNOW.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void espnowOnDataReceived(const uint8_t *mac, const uint8_t *incomingData, int l
6363

6464
//Pass RTCM bytes (presumably) from ESP NOW out ESP32-UART2 to ZED-UART1
6565
serialGNSS.write(incomingData, len);
66-
log_d("ESPNOW received %d RTCM bytes, pushed to ZED, RSSI: %d", len, espnowRSSI);
66+
if(!inMainMenu) log_d("ESPNOW received %d RTCM bytes, pushed to ZED, RSSI: %d", len, espnowRSSI);
6767

6868
espnowIncomingRTCM = true;
6969
lastEspnowRssiUpdate = millis();

Firmware/RTK_Surveyor/NtripClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ void ntripClientUpdate()
460460
i2cGNSS.pushRawData(rtcmData, rtcmCount);
461461
wifiIncomingRTCM = true;
462462

463-
log_d("NTRIP Client received %d RTCM bytes, pushed to ZED", rtcmCount);
463+
if(!inMainMenu) log_d("NTRIP Client received %d RTCM bytes, pushed to ZED", rtcmCount);
464464
}
465465
}
466466

Firmware/RTK_Surveyor/NtripServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ void ntripServerProcessRTCM(uint8_t incoming)
368368
//If we have not gotten new RTCM bytes for a period of time, assume end of frame
369369
if (millis() - ntripServerTimer > 100 && ntripServerBytesSent > 0)
370370
{
371-
log_d("NTRIP Server transmitted %d RTCM bytes to Caster", ntripServerBytesSent);
371+
if(!inMainMenu) log_d("NTRIP Server transmitted %d RTCM bytes to Caster", ntripServerBytesSent);
372372
ntripServerBytesSent = 0;
373373
rtcmPacketsSent++; //If not checking RTCM CRC, count based on timeout
374374
}

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ void updateRadio()
853853

854854
esp_now_send(0, (uint8_t *) &espnowOutgoing, espnowOutgoingSpot); //Send partial packet to all peers
855855

856-
log_d("ESPNOW transmitted %d RTCM bytes", espnowBytesSent + espnowOutgoingSpot);
856+
if(!inMainMenu) log_d("ESPNOW transmitted %d RTCM bytes", espnowBytesSent + espnowOutgoingSpot);
857857
espnowBytesSent = 0;
858858
espnowOutgoingSpot = 0; //Reset
859859
}

Firmware/RTK_Surveyor/Tasks.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void F9PSerialWriteTask(void *e)
1818
//TODO - control if this RTCM source should be listened to or not
1919
serialGNSS.write(wBuffer, s);
2020
bluetoothIncomingRTCM = true;
21-
log_d("Bluetooth received %d RTCM bytes, sent to ZED", s);
21+
if(!inMainMenu) log_d("Bluetooth received %d RTCM bytes, sent to ZED", s);
2222

2323
if (settings.enableTaskReports == true)
2424
Serial.printf("SerialWriteTask High watermark: %d\n\r", uxTaskGetStackHighWaterMark(NULL));
@@ -177,7 +177,7 @@ void F9PSerialReadTask(void *e)
177177
if (btBytesToSend > 0)
178178
{
179179
//If we are in base mode, assume part of the outgoing data is RTCM
180-
if(systemState >= STATE_BASE_NOT_STARTED && systemState <= STATE_BASE_FIXED_TRANSMITTING)
180+
if (systemState >= STATE_BASE_NOT_STARTED && systemState <= STATE_BASE_FIXED_TRANSMITTING)
181181
bluetoothOutgoingRTCM = true;
182182
}
183183
else

0 commit comments

Comments
 (0)