From 6c349d03045b69f0d78e9e12406d02824e60cc2a Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 10 Sep 2024 10:20:13 +0200 Subject: [PATCH] formatting --- src/emsesp.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/emsesp.cpp b/src/emsesp.cpp index d86c47179..bf9438311 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -1579,7 +1579,10 @@ void EMSESP::start() { esp8266React.begin(); #ifndef EMSESP_STANDALONE - LOG_INFO("Booting EMS-ESP version %s from %s partition", EMSESP_APP_VERSION, esp_ota_get_running_partition()->label); // welcome message + LOG_INFO("Booting EMS-ESP version %s from %s/%s partition", + EMSESP_APP_VERSION, + esp_ota_get_boot_partition()->label, + esp_ota_get_running_partition()->label); // welcome message #else LOG_INFO("Booting EMS-ESP version %s", EMSESP_APP_VERSION); // welcome message #endif @@ -1597,9 +1600,10 @@ void EMSESP::start() { if (!nvs_.begin("ems-esp", false, "nvs1")) { // try bigger nvs partition on 16M flash first nvs_.begin("ems-esp", false, "nvs"); // fallback to small nvs } - LOG_DEBUG("NVS device information: %s", system_.getBBQKeesGatewayDetails().c_str()); - webSettingsService.begin(); // load EMS-ESP Application settings... + LOG_DEBUG("NVS device information: %s", system_.getBBQKeesGatewayDetails().isEmpty() ? "not set" : system_.getBBQKeesGatewayDetails().c_str()); + + webSettingsService.begin(); // load EMS-ESP Application settings // do any system upgrades if (system_.check_upgrade(factory_settings)) { @@ -1731,7 +1735,7 @@ void EMSESP::start_serial_console() { void EMSESP::shell_prompt() { #ifndef EMSESP_STANDALONE serial_console_.println(); - serial_console_.println("Press ^C to activate this serial console"); + serial_console_.println("Press CTRL-C to activate this serial console"); #endif }