File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
22
33File AsyncWebConfig.cpp
4- Version 1.0
4+ Version 1.0.2
55Author Gerald Lechner
66contakt lechge@gmail.com
77
@@ -143,7 +143,7 @@ void AsyncWebConfig::addDescription(String parameter){
143143 if (obj.containsKey (" name" )) strlcpy (_description[_count].name ,obj[" name" ],NAMELENGTH);
144144 if (obj.containsKey (" label" ))strlcpy (_description[_count].label ,obj[" label" ],LABELLENGTH);
145145 if (obj.containsKey (" type" )) {
146- if (obj[" type" ].is <char *>()) {
146+ if (obj[" type" ].is <const char *>()) {
147147 uint8_t t = 0 ;
148148 strlcpy (tmp,obj[" type" ],30 );
149149 while ((t<INPUTTYPES) && (strcmp (tmp,inputtypes[t])!=0 )) t++;
@@ -437,6 +437,7 @@ boolean AsyncWebConfig::readConfig(){
437437// write configuration to file
438438boolean AsyncWebConfig::writeConfig (const char * filename){
439439 String val;
440+ Serial.println (" Save configuration" );
440441 File f = SPIFFS.open (filename," w" );
441442 if (f) {
442443 f.printf (" apName=%s\n " ,_apName.c_str ());
You can’t perform that action at this time.
0 commit comments