mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-14 07:21:30 +10:00
Fix crash in GPS setup when GPS is disabled
This commit is contained in:
@@ -562,6 +562,9 @@ void setup()
|
||||
|
||||
if (gps) {
|
||||
gpsStatus->observe(&gps->newStatus);
|
||||
if (config.position.gps_enabled == false && config.position.fixed_position == false) {
|
||||
doGPSpowersave(false);
|
||||
}
|
||||
} else {
|
||||
LOG_WARN("No GPS found - running without GPS\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user