remove duplicate log message

This commit is contained in:
proddy
2025-03-02 09:23:37 +01:00
parent 92d40d9287
commit 43d2fa1f00

View File

@@ -193,17 +193,16 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
#elif CONFIG_IDF_TARGET_ESP32S3 #elif CONFIG_IDF_TARGET_ESP32S3
settings.board_profile = "S32S3"; // BBQKees Gateway S3 settings.board_profile = "S32S3"; // BBQKees Gateway S3
#endif #endif
// apply the new board profile setting // apply the new board profile setting
System::load_board_profile(data, settings.board_profile.c_str()); System::load_board_profile(data, settings.board_profile.c_str());
} }
if (old_board_profile != settings.board_profile) { if (org_board_profile != settings.board_profile) {
// see if need to override the set board profile (e.g. forced by NVS boot string) if (org_board_profile.isEmpty()) {
EMSESP::logger().info("Setting new Board profile %s (was %s)", settings.board_profile.c_str(), old_board_profile.c_str()); EMSESP::logger().info("Setting board profile to %s", settings.board_profile.c_str());
} else if (org_board_profile != settings.board_profile) { } else {
// EMSESP::logger().info("Board profile set to %s", settings.board_profile.c_str()); EMSESP::logger().info("Setting board profile to %s (was %s)", settings.board_profile.c_str(), org_board_profile.c_str());
EMSESP::logger().info("Setting new Board profile %s (was %s)", settings.board_profile.c_str(), org_board_profile.c_str()); }
} }
int prev; int prev;