Skip to content

Commit

Permalink
Fix GPS init bug -- power up even when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-bennett committed Oct 1, 2023
1 parent 4e3576a commit a1f93e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gps/GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1f93e5

Please sign in to comment.