mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
string casting
This commit is contained in:
@@ -97,9 +97,9 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
|
||||
#endif
|
||||
|
||||
#ifdef EMSESP_DEBUG
|
||||
EMSESP::logger().debug("NVS boot value is %s, board profile is %s, EMSESP_DEFAULT_BOARD_PROFILE is %s",
|
||||
EMSESP::logger().debug("NVS boot value = [%s] board profile = [%s] EMSESP_DEFAULT_BOARD_PROFILE = [%s]",
|
||||
EMSESP::nvs_.getString("boot").c_str(),
|
||||
root["board_profile"].as<const char *>(),
|
||||
root["board_profile"] | "",
|
||||
EMSESP_DEFAULT_BOARD_PROFILE);
|
||||
#endif
|
||||
|
||||
@@ -185,7 +185,9 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
|
||||
System::load_board_profile(data, settings.board_profile.c_str());
|
||||
EMSESP::logger().warning("No Board profile setup - using %s", settings.board_profile.c_str());
|
||||
} else {
|
||||
// board profile is a valid one and data has been loaded
|
||||
if (old_board_profile != settings.board_profile) {
|
||||
// see if need to override the set board profile (e.g. forced by NVS boot string)
|
||||
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 set to %s", settings.board_profile.c_str());
|
||||
|
||||
Reference in New Issue
Block a user