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 101880f834
commit 1b922cdaf4

View File

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