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