From a1f93e592dff5aa1e0fabec871bd16c70736bbc3 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Sat, 30 Sep 2023 22:30:36 -0500 Subject: [PATCH] Fix GPS init bug -- power up even when disabled --- src/gps/GPS.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp index 13afaa3e68..6a0b5e3dd7 100644 --- a/src/gps/GPS.cpp +++ b/src/gps/GPS.cpp @@ -899,9 +899,7 @@ GPS *GPS::createGps() LOG_DEBUG("Using " NMEA_MSG_GXGSA " for 3DFIX and PDOP\n"); #endif - if (config.position.gps_enabled) { - new_gps->setGPSPower(true, false); - } + new_gps->setGPSPower(true, false); #ifdef PIN_GPS_RESET digitalWrite(PIN_GPS_RESET, GPS_RESET_MODE); // assert for 10ms