mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-02 03:45:46 +00:00
Fix GPS init bug -- power up even when disabled (#2850)
This commit is contained in:
parent
1552aa0081
commit
47c6738c0d
@ -899,9 +899,7 @@ GPS *GPS::createGps()
|
|||||||
LOG_DEBUG("Using " NMEA_MSG_GXGSA " for 3DFIX and PDOP\n");
|
LOG_DEBUG("Using " NMEA_MSG_GXGSA " for 3DFIX and PDOP\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (config.position.gps_enabled) {
|
new_gps->setGPSPower(true, false);
|
||||||
new_gps->setGPSPower(true, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef PIN_GPS_RESET
|
#ifdef PIN_GPS_RESET
|
||||||
digitalWrite(PIN_GPS_RESET, GPS_RESET_MODE); // assert for 10ms
|
digitalWrite(PIN_GPS_RESET, GPS_RESET_MODE); // assert for 10ms
|
||||||
|
Loading…
Reference in New Issue
Block a user