From a18552c4f44da4b5d3633926ae4495bb544929f0 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <67171972+IoTManagerProject@users.noreply.github.com> Date: Fri, 14 Jan 2022 20:47:24 +0100 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D1=8B=D0=B5=20=D0=BE?= =?UTF-8?q?=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20=D0=B2=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=B5=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Config.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();