From bc232fcff2019d705cba4b171faed786f9b179e6 Mon Sep 17 00:00:00 2001 From: proddy Date: Wed, 13 Mar 2024 17:50:33 +0100 Subject: [PATCH] added some debug log messages --- lib/framework/FSPersistence.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/framework/FSPersistence.h b/lib/framework/FSPersistence.h index 1fe93c8bc..3ccf53a53 100644 --- a/lib/framework/FSPersistence.h +++ b/lib/framework/FSPersistence.h @@ -32,8 +32,11 @@ class FSPersistence { settingsFile.close(); } - // If we reach here we have not been successful in loading the config, - // hard-coded emergency defaults are now applied. +// If we reach here we have not been successful in loading the config, +// hard-coded emergency defaults are now applied. +#ifdef EMSESP_DEBUG + Serial.println("Applying defaults to " + String(_filePath)); +#endif applyDefaults(); writeToFS(); // added to make sure the initial file is created }