fix possible crash

This commit is contained in:
MichaelDvP
2025-06-11 11:35:01 +02:00
parent faa2c5f1aa
commit 32d7cf4e9c

View File

@@ -116,7 +116,7 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
String nvs_boot = EMSESP::nvs_.getString("boot"); String nvs_boot = EMSESP::nvs_.getString("boot");
if (!nvs_boot.isEmpty()) { if (!nvs_boot.isEmpty()) {
#if defined(EMSESP_DEBUG) #if defined(EMSESP_DEBUG)
EMSESP::logger().debug("Overriding board profile with NVS boot value %s"); EMSESP::logger().debug("Overriding board profile with NVS boot value %s", nvs_boot.c_str());
#endif #endif
settings.board_profile = nvs_boot; settings.board_profile = nvs_boot;
} }