Browse Source

Gate PIN_GPS_EN

Do not reference it unconditionally
pull/2488/head
Wessel Nieboer 4 weeks ago
parent
commit
3bde089bdb
No known key found for this signature in database GPG Key ID: 929C8E45E33B5FD2
  1. 2
      src/helpers/sensors/EnvironmentSensorManager.cpp

2
src/helpers/sensors/EnvironmentSensorManager.cpp

@ -708,9 +708,11 @@ bool EnvironmentSensorManager::gpsIsAwake(uint8_t ioPin){
return true;
} else if (Serial1.available()) {
MESH_DEBUG_PRINTLN("Serial GPS init correctly and is turned on");
#ifdef PIN_GPS_EN
if(PIN_GPS_EN){
gpsResetPin = PIN_GPS_EN;
}
#endif
serialGPSFlag = true;
gps_active = true;
gps_detected = true;

Loading…
Cancel
Save