From c83abbeff67a71f9cace583dc99d1d177e39a811 Mon Sep 17 00:00:00 2001 From: fdlamotte Date: Sun, 28 Sep 2025 09:20:59 +0200 Subject: [PATCH] ESM: add gps reset after begin --- src/helpers/sensors/EnvironmentSensorManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helpers/sensors/EnvironmentSensorManager.cpp b/src/helpers/sensors/EnvironmentSensorManager.cpp index faa04275..99605ff3 100644 --- a/src/helpers/sensors/EnvironmentSensorManager.cpp +++ b/src/helpers/sensors/EnvironmentSensorManager.cpp @@ -438,6 +438,7 @@ void EnvironmentSensorManager::initBasicGPS() { // Try to detect if GPS is physically connected to determine if we should expose the setting _location->begin(); + _location->reset(); #ifndef PIN_GPS_EN MESH_DEBUG_PRINTLN("No GPS wake/reset pin found for this board. Continuing on..."); @@ -545,6 +546,7 @@ void EnvironmentSensorManager::start_gps() { #endif _location->begin(); + _location->reset(); #ifndef PIN_GPS_RESET MESH_DEBUG_PRINTLN("Start GPS is N/A on this board. Actual GPS state unchanged");