Skip to content

Commit

Permalink
GPS TCP: fix compilation without WiFi
Browse files Browse the repository at this point in the history
This adds an ifdef around a wifi-specific line introduced in
edee67e.
  • Loading branch information
ge0rg committed Oct 25, 2021
1 parent 14cbcac commit 5e64d3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/taskGPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5e64d3c

Please sign in to comment.