GPS TCP: fix compilation without WiFi

This adds an ifdef around a wifi-specific line introduced in
edee67e798.
pull/94/head
Georg Lukas 2021-10-25 17:42:59 +02:00
rodzic 14cbcac5d1
commit 5e64d3c0c7
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

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