GPS TCP: fix compilation without WiFi
This adds an ifdef around a wifi-specific line introduced in
edee67e798.
This commit is contained in:
parent
14cbcac5d1
commit
5e64d3c0c7
|
|
@ -45,7 +45,9 @@ bool gpsInitialized = false;
|
|||
|
||||
String gpsDataBuffer = " ";
|
||||
for (;;) {
|
||||
#ifdef ENABLE_WIFI
|
||||
check_for_new_clients(&gpsServer, gps_clients, MAX_GPS_WIFI_CLIENTS);
|
||||
#endif
|
||||
while (gpsSerial.available() > 0) {
|
||||
char gpsChar = (char)gpsSerial.read();
|
||||
gps.encode(gpsChar);
|
||||
|
|
|
|||
Loading…
Reference in New Issue