mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
debug messages
This commit is contained in:
@@ -30,11 +30,11 @@ class FSPersistence {
|
||||
DynamicJsonDocument jsonDocument = DynamicJsonDocument(_bufferSize);
|
||||
DeserializationError error = deserializeJson(jsonDocument, settingsFile);
|
||||
if (error == DeserializationError::Ok && jsonDocument.is<JsonObject>()) {
|
||||
jsonDocument.shrinkToFit(); // added by proddy
|
||||
// jsonDocument.shrinkToFit(); // added by proddy
|
||||
JsonObject jsonObject = jsonDocument.as<JsonObject>();
|
||||
|
||||
// debug added by Proddy
|
||||
#if defined(EMSESP_FORCE_SERIAL)
|
||||
#if defined(EMSESP_FORCE_SERIAL) || defined(ESP32)
|
||||
Serial.printf("Read File: %s: ", _filePath);
|
||||
serializeJson(jsonDocument, Serial);
|
||||
Serial.println();
|
||||
@@ -67,7 +67,7 @@ class FSPersistence {
|
||||
}
|
||||
|
||||
// debug added by Proddy
|
||||
#if defined(EMSESP_FORCE_SERIAL)
|
||||
#if defined(EMSESP_FORCE_SERIAL) || defined(ESP32)
|
||||
Serial.printf("Write File: %s: ", _filePath);
|
||||
serializeJson(jsonDocument, Serial);
|
||||
Serial.println();
|
||||
|
||||
Reference in New Issue
Block a user