Skip to content

Commit 5a478cc

Browse files
committed
Add WiFi compile guards to new code
1 parent 55c8893 commit 5a478cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Firmware/RTK_Surveyor/Rover.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,19 +353,22 @@ void storeHPdata(UBX_NAV_HPPOSLLH_data_t *ubxDataStruct)
353353
//Used during Rover+WiFi NTRIP Client mode to provide caster with GGA sentence every 10 seconds
354354
void pushGPGGA(NMEA_GGA_data_t *nmeaData)
355355
{
356+
#ifdef COMPILE_WIFI
356357
//Provide the caster with our current position as needed
357358
if ((ntripClient.connected() == true) && (settings.ntripClient_TransmitGGA == true))
358359
{
359360
log_d("Pushing GGA to server: %s", nmeaData->nmea); //nmea is printable (NULL-terminated) and already has \r\n on the end
360361

361362
ntripClient.print((const char *)nmeaData->nmea); //Push our current GGA sentence to caster
362363
}
364+
#endif
363365
}
364366

365367
//Check for the arrival of any correction data. Push it to the GNSS.
366368
//Stop task if the connection has dropped or if we receive no data for maxTimeBeforeHangup_ms
367369
void updateNTRIPClient()
368370
{
371+
#ifdef COMPILE_WIFI
369372
if (online.ntripClient == true)
370373
{
371374
if (ntripClient.connected() == true) // Check that the connection is still open
@@ -405,4 +408,5 @@ void updateNTRIPClient()
405408
online.ntripClient = false;
406409
}
407410
}
411+
#endif
408412
}

0 commit comments

Comments
 (0)