GPS TCP: fix compilation without WiFi

This adds an ifdef around a wifi-specific line introduced in
edee67e798.
This commit is contained in:
Georg Lukas 2021-10-25 17:42:59 +02:00
parent 14cbcac5d1
commit 5e64d3c0c7
1 changed files with 2 additions and 0 deletions

View File

@ -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);