Skip to content

Commit bf733f0

Browse files
authored
Merge pull request #2488 from weebl2000/fix-rak-pin-gps-en-undefined
Gate PIN_GPS_EN
2 parents b75cefb + 3bde089 commit bf733f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/helpers/sensors/EnvironmentSensorManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,9 +731,11 @@ bool EnvironmentSensorManager::gpsIsAwake(uint8_t ioPin){
731731
return true;
732732
} else if (Serial1.available()) {
733733
MESH_DEBUG_PRINTLN("Serial GPS init correctly and is turned on");
734+
#ifdef PIN_GPS_EN
734735
if(PIN_GPS_EN){
735736
gpsResetPin = PIN_GPS_EN;
736737
}
738+
#endif
737739
serialGPSFlag = true;
738740
gps_active = true;
739741
gps_detected = true;

0 commit comments

Comments
 (0)