Skip to content

Commit 2286a8e

Browse files
authored
Add files via upload
1 parent 8acd40f commit 2286a8e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/AsyncWebConfig.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
File AsyncWebConfig.cpp
4-
Version 1.0
4+
Version 1.0.2
55
Author Gerald Lechner
66
contakt 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
438438
boolean 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());

0 commit comments

Comments
 (0)