Skip to content

Commit e2cec32

Browse files
committed
Better corrections debugging
1 parent 988ca7c commit e2cec32

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Firmware/RTK_Everywhere/NtripClient.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ void ntripClientUpdate()
833833
// Push RTCM to GNSS module over I2C / SPI
834834
gnssPushRawData(rtcmData, rtcmCount);
835835

836-
if ((settings.debugNtripClientRtcm || PERIODIC_DISPLAY(PD_NTRIP_CLIENT_DATA)) &&
836+
if ((settings.debugCorrections || settings.debugNtripClientRtcm || PERIODIC_DISPLAY(PD_NTRIP_CLIENT_DATA)) &&
837837
(!inMainMenu))
838838
{
839839
PERIODIC_CLEAR(PD_NTRIP_CLIENT_DATA);
@@ -842,7 +842,7 @@ void ntripClientUpdate()
842842
}
843843
else
844844
{
845-
if ((settings.debugNtripClientRtcm || PERIODIC_DISPLAY(PD_NTRIP_CLIENT_DATA)) &&
845+
if ((settings.debugCorrections || settings.debugNtripClientRtcm || PERIODIC_DISPLAY(PD_NTRIP_CLIENT_DATA)) &&
846846
(!inMainMenu))
847847
{
848848
PERIODIC_CLEAR(PD_NTRIP_CLIENT_DATA);

Firmware/RTK_Everywhere/Tasks.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void sendGnssBuffer()
270270
{
271271
if (gnssPushRawData(bluetoothOutgoingToGnss, bluetoothOutgoingToGnssHead))
272272
{
273-
if (PERIODIC_DISPLAY(PD_ZED_DATA_TX))
273+
if (settings.debugCorrections || PERIODIC_DISPLAY(PD_ZED_DATA_TX))
274274
{
275275
PERIODIC_CLEAR(PD_ZED_DATA_TX);
276276
systemPrintf("Sent %d BT bytes to GNSS\r\n", bluetoothOutgoingToGnssHead);
@@ -280,7 +280,7 @@ void sendGnssBuffer()
280280
}
281281
else
282282
{
283-
if (PERIODIC_DISPLAY(PD_ZED_DATA_TX))
283+
if (settings.debugCorrections || PERIODIC_DISPLAY(PD_ZED_DATA_TX))
284284
{
285285
PERIODIC_CLEAR(PD_ZED_DATA_TX);
286286
systemPrintf("%d BT bytes NOT sent due to priority\r\n", bluetoothOutgoingToGnssHead);

0 commit comments

Comments
 (0)