mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-08 22:37:46 +00:00
free serial pins if gps_disabled is set
This commit is contained in:
parent
cef1614770
commit
72f443c519
@ -322,6 +322,7 @@ GPS *createGps()
|
||||
#ifdef NO_GPS
|
||||
return nullptr;
|
||||
#else
|
||||
if (!radioConfig.preferences.gps_disabled){
|
||||
#ifdef GPS_ALTITUDE_HAE
|
||||
DEBUG_MSG("Using HAE altitude model\n");
|
||||
#else
|
||||
@ -353,6 +354,7 @@ GPS *createGps()
|
||||
new_gps->setup();
|
||||
return new_gps;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
Loading…
Reference in New Issue
Block a user