debug comments

This commit is contained in:
Paul
2020-11-08 20:21:18 +01:00
parent f997e88ca0
commit bb9ca4fc29

View File

@@ -33,10 +33,12 @@ class FSPersistence {
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
// Serial.printf("Read File: %s: ", _filePath); #if defined(EMSESP_FORCE_SERIAL)
// serializeJson(jsonDocument, Serial); Serial.printf("Read File: %s: ", _filePath);
// Serial.println(); serializeJson(jsonDocument, Serial);
Serial.println();
#endif
_statefulService->updateWithoutPropagation(jsonObject, _stateUpdater); _statefulService->updateWithoutPropagation(jsonObject, _stateUpdater);
settingsFile.close(); settingsFile.close();
@@ -64,12 +66,10 @@ class FSPersistence {
return false; return false;
} }
// debug added by Proddy // debug added by Proddy
#if defined(EMSESP_DEBUG) // Serial.printf("Write File: %s: ", _filePath);
Serial.printf("Write File: %s: ", _filePath); // serializeJson(jsonDocument, Serial);
serializeJson(jsonDocument, Serial); // Serial.println();
Serial.println();
#endif
// serialize the data to the file // serialize the data to the file
serializeJson(jsonDocument, settingsFile); serializeJson(jsonDocument, settingsFile);