Skip to content

Commit 5faf02a

Browse files
committed
Clean up prints
1 parent 9c81cc2 commit 5faf02a

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

Firmware/RTK_Everywhere/GNSS.ino

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ void gnssDetectReceiverType()
115115
if (productVariant != RTK_FLEX)
116116
return;
117117

118-
// settings.detectedGnssReceiver = GNSS_RECEIVER_LG290P;
119-
// gnss = (GNSS *)new GNSS_LG290P();
120-
// systemPrintln("Starting GNSS receiver: LG290P");
121-
// return;
122-
123118
gnssBoot(); // Tell GNSS to run
124119

125120
// TODO remove after testing, force retest on each boot
@@ -131,6 +126,7 @@ void gnssDetectReceiverType()
131126
#ifdef COMPILE_LG290P
132127
if (lg290pIsPresent() == true)
133128
{
129+
systemPrintln("Auto-detected GNSS receiver: LG290P");
134130
settings.detectedGnssReceiver = GNSS_RECEIVER_LG290P;
135131
recordSystemSettings(); // Record the detected GNSS receiver and avoid this test in the future
136132
}
@@ -142,6 +138,7 @@ void gnssDetectReceiverType()
142138
// TODO - this uses UART2, but Flex is UART1. We need to make the mosaic send routines flexible to use
143139
// whichever UART we specify.
144140
// if (mosaicIsPresent() == true)
141+
// systemPrintln("Auto-detected GNSS receiver: mosaic-X5");
145142
// settings.detectedGnssReceiver = GNSS_RECEIVER_MOSAIC_X5;
146143
// recordSystemSettings(); // Record the detected GNSS receiver and avoid this test in the future
147144
#else // COMPILE_MOSAICX5
@@ -155,15 +152,13 @@ void gnssDetectReceiverType()
155152
#ifdef COMPILE_LG290P
156153
gnss = (GNSS *)new GNSS_LG290P();
157154
present.gnss_lg290p = true;
158-
systemPrintln("Starting GNSS receiver: LG290P");
159155
#endif // COMPILE_LGP290P
160156
}
161157
else if (settings.detectedGnssReceiver == GNSS_RECEIVER_MOSAIC_X5)
162158
{
163159
#ifdef COMPILE_MOSAICX5
164160
gnss = (GNSS *)new GNSS_MOSAIC();
165161
present.gnss_mosaicX5 = true;
166-
systemPrintln("Starting GNSS receiver: mosaic-X5");
167162
#endif // COMPILE_MOSAICX5
168163
}
169164

Firmware/RTK_Everywhere/GNSS_LG290P.ino

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,17 +2393,14 @@ bool lg290pIsPresent()
23932393
// LG290P communicates at 460800bps.
23942394
uint32_t platformGnssCommunicationRate = 115200 * 4;
23952395

2396-
// systemPrintf("Starting GNSS primary UART at %d on pins RX: %d TX: %d\r\n", platformGnssCommunicationRate,
2397-
// pin_GnssUart_RX, pin_GnssUart_TX);
2398-
23992396
serialTestGNSS.begin(platformGnssCommunicationRate, SERIAL_8N1, pin_GnssUart_RX, pin_GnssUart_TX);
24002397

24012398
LG290P lg290p;
24022399

24032400
if (lg290p.begin(serialTestGNSS) == true) // Give the serial port over to the library
24042401
{
2405-
// if (settings.debugGnss)
2406-
systemPrintln("LG290P detected");
2402+
if (settings.debugGnss)
2403+
systemPrintln("LG290P detected");
24072404
serialTestGNSS.end();
24082405
return true;
24092406
}

Firmware/RTK_Everywhere/System.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,6 @@ void gpioExpanderGnssReset()
923923
{
924924
if (settings.detectedGnssReceiver != GNSS_RECEIVER_LG290P)
925925
{
926-
Serial.println("Driving GNSS reset LOW");
927926
gpioExpanderSwitches->digitalWrite(gpioExpanderSwitch_GNSS_Reset, LOW);
928927
}
929928
else

0 commit comments

Comments
 (0)