From 5e64d3c0c7bf6c1a1dca7547f98bacc48f67cf50 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Mon, 25 Oct 2021 17:42:59 +0200 Subject: [PATCH] GPS TCP: fix compilation without WiFi This adds an ifdef around a wifi-specific line introduced in edee67e7980d2d62f82d2ee98a77ab53ef955940. --- src/taskGPS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/taskGPS.cpp b/src/taskGPS.cpp index 9847b8e..0288f99 100644 --- a/src/taskGPS.cpp +++ b/src/taskGPS.cpp @@ -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);