sleep fixes

This commit is contained in:
liquidraver committed 2026-10-15 21:53:08 +02:00
1 parent ff0e6553a0
commit afa7ada095
8 files changed
+111 -20

No files matched your search

+3 -1
View File
@@ -1145,7 +1145,9 @@ void CommonCLI::handleGetCmd(uint32_t sender_timestamp, const char* command, cha
} else if (memcmp(config, "gps", 3) == 0) {
/* The detail behind the `gps` line: duty-cycle state, fix age,
* position. Per-constellation counts are in get gps diag. */
if (!gps_is_enabled()) {
if (!_sensors->isGPSDetected()) {
strcpy(reply, "> not found");
} else if (!gps_is_enabled()) {
strcpy(reply, "> off");
} else {
static const char* const state_str[] = { "off", "standby", "acquiring" };