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 d0f9a5b4e1
commit 179d66cb95

View File

@@ -688,7 +688,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");