Merge pull request #94 from ge0rg/master

GPS TCP: fix compilation without WiFi
This commit is contained in:
Rysiek Labus (SQ9MDD) 2021-10-28 21:47:46 +02:00 committed by GitHub
commit 4fa5001a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);