mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 02:09:57 +03:00
bug with publish_time
This commit is contained in:
@@ -1131,11 +1131,9 @@ bool SetListCallback(MYESP_FSACTION_t action, uint8_t wc, const char * setting,
|
|||||||
// publish_time
|
// publish_time
|
||||||
if ((strcmp(setting, "publish_time") == 0) && (wc == 2)) {
|
if ((strcmp(setting, "publish_time") == 0) && (wc == 2)) {
|
||||||
int16_t val = atoi(value);
|
int16_t val = atoi(value);
|
||||||
if (val > 0) {
|
if (val >= 0) {
|
||||||
EMSESP_Settings.publish_time = atoi(value);
|
EMSESP_Settings.publish_time = atoi(value);
|
||||||
ok = true;
|
ok = true;
|
||||||
} else {
|
|
||||||
myDebug_P(PSTR("Error. time must be at least 1 second"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user