From fa614dcaca85eab3ffd848a6fd44295d2c7801c4 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 9 Sep 2024 08:41:10 +0200 Subject: [PATCH] typo --- src/web/WebSettingsService.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/web/WebSettingsService.cpp b/src/web/WebSettingsService.cpp index 21a1ed54c..68b1c328d 100644 --- a/src/web/WebSettingsService.cpp +++ b/src/web/WebSettingsService.cpp @@ -96,10 +96,12 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) { bool psram = false; #endif + + #ifdef EMSESP_DEBUG EMSESP::logger().debug("NVS boot value is %s, board profile is %s, EMSESP_DEFAULT_BOARD_PROFILE is %s", - EMSESP::nvs_.getString("boot"), - root["board_profile"].as().c_str(), + EMSESP::nvs_.getString("boot").c_str(), + root["board_profile"].as(), EMSESP_DEFAULT_BOARD_PROFILE); #endif @@ -188,7 +190,7 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) { if (old_board_profile != settings.board_profile) { EMSESP::logger().info("Applying new Board profile %s (was %s)", settings.board_profile.c_str(), old_board_profile.c_str()); } else { - EMSESP::logger().info("Board profile is %s", settings.board_profile.c_str()); + EMSESP::logger().info("Board profile set to %s", settings.board_profile.c_str()); } }