From e3d7feb51c2a54521cf5685f1e634760e4ba87cd Mon Sep 17 00:00:00 2001 From: Kevin Le Date: Wed, 2 Sep 2026 17:39:22 +0700 Subject: [PATCH] Fixed crash if doing "gps" on ESP32 repeaters without GPS module --- src/helpers/CommonCLI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/CommonCLI.cpp b/src/helpers/CommonCLI.cpp index fe9a7e60..3525190e 100644 --- a/src/helpers/CommonCLI.cpp +++ b/src/helpers/CommonCLI.cpp @@ -395,7 +395,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, char* command, char* re bool enabled = l->isEnabled(); // is EN pin on ? bool fix = l->isValid(); // has fix ? int sats = l->satellitesCount(); - bool active = !strcmp(_sensors->getSettingByKey("gps"), "1"); + bool active = !strcmp(_sensors->getSettingByKey("gps") ?: "0", "1"); // Use "0" if GPS setting is not found if (_prefs->powersaving_enabled && l->isPowerSavingEnabled()) { // GPS Power Saving if (enabled) {