mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-02 02:06:11 +00:00
Gate PIN_GPS_EN
Do not reference it unconditionally
This commit is contained in:
@@ -708,9 +708,11 @@ bool EnvironmentSensorManager::gpsIsAwake(uint8_t ioPin){
|
|||||||
return true;
|
return true;
|
||||||
} else if (Serial1.available()) {
|
} else if (Serial1.available()) {
|
||||||
MESH_DEBUG_PRINTLN("Serial GPS init correctly and is turned on");
|
MESH_DEBUG_PRINTLN("Serial GPS init correctly and is turned on");
|
||||||
|
#ifdef PIN_GPS_EN
|
||||||
if(PIN_GPS_EN){
|
if(PIN_GPS_EN){
|
||||||
gpsResetPin = PIN_GPS_EN;
|
gpsResetPin = PIN_GPS_EN;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
serialGPSFlag = true;
|
serialGPSFlag = true;
|
||||||
gps_active = true;
|
gps_active = true;
|
||||||
gps_detected = true;
|
gps_detected = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user