добавил возможные ошибки в файле конфигурации

This commit is contained in:
Dmitry Borisenko
2022-01-14 20:47:24 +01:00
parent d4f9069f6f
commit a18552c4f4

View File

@@ -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();