From e9c4cdb2c63675ce74dae61c89cc8b0b311fde85 Mon Sep 17 00:00:00 2001 From: tablatronix Date: Tue, 7 Aug 2018 14:06:31 -0500 Subject: [PATCH] disable setvalue on customhtml params --- WiFiManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index faefd4c..01e9c13 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -63,6 +63,10 @@ WiFiManagerParameter::~WiFiManagerParameter() { } void WiFiManagerParameter::setValue(const char *defaultValue, int length) { + if(!_id){ + // Serial.println("cannot set value of this parameter"); + return; + } _length = length; int deflength = strlen(defaultValue); // length actual // use the defult length if it's longer,