Fix crash in GPS setup when GPS is disabled

This commit is contained in:
Jonathan Bennett committed 2023-09-06 12:38:58 -05:00
1 parent 899f9dd7bf
commit 0fa3685161
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -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");
}