correct your idea about deflength

This commit is contained in:
Dontsov Evgeny
2018-09-24 03:45:49 +03:00
parent 34e1516524
commit 85b2319b59
+1 -1
View File
@@ -71,7 +71,7 @@ void WiFiManagerParameter::setValue(const char *defaultValue, int length) {
int deflength = strlen(defaultValue); // length actual
// use the defult length if it's longer,
// @todo consider it might be useful to fail, so user knows they were wrong
if(_length < length){
if(_length < deflength){
// Serial.println("defaultValue length mismatch");
_length = deflength;
}