diff --git a/src/Config.cpp b/src/Config.cpp index 30244f3f..fd52db65 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -2,7 +2,6 @@ void configure(String& path) { File file = seekFile(path); - while (file.available()) { String jsonArrayElement = file.readStringUntil('}') + "}"; String value; @@ -11,9 +10,11 @@ void configure(String& path) { //============================= } else if (value == F("pwm-out")) { //============================= + } else { + SerialPrint(F("E"), F("Config"), F("config.json error, type not exist")); } } else { - SerialPrint(F("E"), F("System"), F("Fatal configuration error, type wrong or missing")); + SerialPrint(F("E"), F("Config"), F("config.json error, type wrong or missing")); } } file.close();