From d5ffd26c3cab14e53554f8dc014f5c54918ee898 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Thu, 10 Oct 2024 18:45:12 -0300 Subject: [PATCH] double validation for DigiEcoMode start stop --- src/query_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query_utils.cpp b/src/query_utils.cpp index 6ba02ca..1518b1b 100644 --- a/src/query_utils.cpp +++ b/src/query_utils.cpp @@ -51,12 +51,12 @@ namespace QUERY_Utils { // agregar callsign para completar donde esta X callsign --> posicion Serial.println("estaciones escuchadas directo (ultimos 30 min)"); answer.concat("?WHERE on development 73!"); - } else if (queryQuestion.indexOf("?APRSEEM") == 0) { // Exit DigiRepeater EcoMode + } else if (queryQuestion.indexOf("?APRSEEM") == 0 && Config.digi.ecoMode == true) { // Exit DigiRepeater EcoMode answer = "DigiEcoMode:Stop"; Config.digi.ecoMode = false; Config.display.alwaysOn = true; Config.display.timeout = 10; - } else if (queryQuestion.indexOf("?APRSSEM") == 0) { // Start DigiRepeater EcoMode + } else if (queryQuestion.indexOf("?APRSSEM") == 0 && Config.digi.ecoMode == false) { // Start DigiRepeater EcoMode answer = "DigiEcoMode:Start"; Config.digi.ecoMode = true; } else if (queryQuestion.indexOf("?APRSEMS") == 0) { // DigiRepeater EcoMode Status