Update src/helpers/CommonCLI.cpp

Co-authored-by: Wessel <wessel@weebl.me>
This commit is contained in:
mattzzw
2026-03-05 08:21:15 +01:00
committed by Matthias Wientapper
parent 4bd29650eb
commit c1587b5bb6

View File

@@ -708,7 +708,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
}; };
} else if (memcmp(config, "flood.advert.base ", 18) == 0) { } else if (memcmp(config, "flood.advert.base ", 18) == 0) {
float f = atof(&config[18]); float f = atof(&config[18]);
if((f > 0) || (f<1)) { if(f >= 0 && f <= 1) {
_prefs->flood_advert_base = f; _prefs->flood_advert_base = f;
savePrefs(); savePrefs();
strcpy(reply, "OK"); strcpy(reply, "OK");