Skip to content

Commit c83abbe

Browse files
authored
ESM: add gps reset after begin
1 parent 030f0d5 commit c83abbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/helpers/sensors/EnvironmentSensorManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ void EnvironmentSensorManager::initBasicGPS() {
438438

439439
// Try to detect if GPS is physically connected to determine if we should expose the setting
440440
_location->begin();
441+
_location->reset();
441442

442443
#ifndef PIN_GPS_EN
443444
MESH_DEBUG_PRINTLN("No GPS wake/reset pin found for this board. Continuing on...");
@@ -545,6 +546,7 @@ void EnvironmentSensorManager::start_gps() {
545546
#endif
546547

547548
_location->begin();
549+
_location->reset();
548550

549551
#ifndef PIN_GPS_RESET
550552
MESH_DEBUG_PRINTLN("Start GPS is N/A on this board. Actual GPS state unchanged");

0 commit comments

Comments
 (0)