mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
ESM: add gps reset after begin
This commit is contained in:
parent
030f0d5d82
commit
c83abbeff6
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue