This commit is contained in:
nerdyscout 2019-11-19 22:41:49 +00:00
parent 8790c9f3d5
commit ae8f4ac514

View File

@ -70,6 +70,7 @@ void sendData() {
if (cfg.blescan)
payload.addCount(macs_ble, MAC_SNIFF_BLE);
#endif
#if (HAS_GPS) && (GPSPORT == 1)
// send GPS position only if we have a fix
if (gps.location.isValid()) {
gpsStatus_t gps_status;
@ -105,7 +106,7 @@ void sendData() {
break;
#endif
#if (HAS_GPS) && (GPSPORT!=1)
#if (HAS_GPS) && (GPSPORT != 1)
case GPS_DATA:
// send GPS position only if we have a fix
if (gps.location.isValid()) {