ESM: add gps reset after begin
This commit is contained in:
@@ -438,6 +438,7 @@ void EnvironmentSensorManager::initBasicGPS() {
|
|||||||
|
|
||||||
// Try to detect if GPS is physically connected to determine if we should expose the setting
|
// Try to detect if GPS is physically connected to determine if we should expose the setting
|
||||||
_location->begin();
|
_location->begin();
|
||||||
|
_location->reset();
|
||||||
|
|
||||||
#ifndef PIN_GPS_EN
|
#ifndef PIN_GPS_EN
|
||||||
MESH_DEBUG_PRINTLN("No GPS wake/reset pin found for this board. Continuing on...");
|
MESH_DEBUG_PRINTLN("No GPS wake/reset pin found for this board. Continuing on...");
|
||||||
@@ -545,6 +546,7 @@ void EnvironmentSensorManager::start_gps() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
_location->begin();
|
_location->begin();
|
||||||
|
_location->reset();
|
||||||
|
|
||||||
#ifndef PIN_GPS_RESET
|
#ifndef PIN_GPS_RESET
|
||||||
MESH_DEBUG_PRINTLN("Start GPS is N/A on this board. Actual GPS state unchanged");
|
MESH_DEBUG_PRINTLN("Start GPS is N/A on this board. Actual GPS state unchanged");
|
||||||
|
|||||||
Reference in New Issue
Block a user