From bb8063b46993f542c670237f19a3dad2a0ac14ad Mon Sep 17 00:00:00 2001 From: mattzzw Date: Mon, 15 Dec 2025 11:24:11 +0100 Subject: [PATCH] CommonCLI.cpp: CommonCLI: Set limits for flood advert interval check to 12-48h --- src/helpers/CommonCLI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/CommonCLI.cpp b/src/helpers/CommonCLI.cpp index a3de990a..b71da88b 100644 --- a/src/helpers/CommonCLI.cpp +++ b/src/helpers/CommonCLI.cpp @@ -371,8 +371,8 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch strcpy(reply, "OK"); } else if (memcmp(config, "flood.advert.interval ", 22) == 0) { int hours = _atoi(&config[22]); - if ((hours > 0 && hours < 3) || (hours > 48)) { - strcpy(reply, "Error: interval range is 3-48 hours"); + if ((hours > 0 && hours < 12) || (hours > 48)) { + strcpy(reply, "Error: interval range is 12-48 hours"); } else { _prefs->flood_advert_interval = (uint8_t)(hours); _callbacks->updateFloodAdvertTimer();