From 5a09de002ade796b9abe61d95f8bc0ed94be85e1 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 8 Mar 2022 12:02:18 +0100 Subject: [PATCH] show correct hostname in startup message --- src/emsesp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/emsesp.cpp b/src/emsesp.cpp index 255c98422..54ddc1991 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -1370,7 +1370,6 @@ void EMSESP::start() { esp8266React.begin(); // loads core system services settings (network, mqtt, ap, ntp etc) webLogService.begin(); // start web log service. now we can start capturing logs to the web log - LOG_INFO(F("Starting EMS-ESP version %s (hostname: %s)"), EMSESP_APP_VERSION, system_.hostname().c_str()); // welcome message LOG_INFO(F("Last system reset reason Core0: %s, Core1: %s"), system_.reset_reason(0).c_str(), system_.reset_reason(1).c_str()); webSettingsService.begin(); // load EMS-ESP Application settings... @@ -1385,8 +1384,10 @@ void EMSESP::start() { system_.check_upgrade(); // do any system upgrades // start all the EMS-ESP services - mqtt_.start(); // mqtt init - system_.start(); // starts commands, led, adc, button, network, syslog & uart + mqtt_.start(); // mqtt init + system_.start(); // starts commands, led, adc, button, network, syslog & uart + LOG_INFO(F("Starting EMS-ESP version %s (hostname: %s)"), EMSESP_APP_VERSION, system_.hostname().c_str()); // welcome message + shower_.start(); // initialize shower timer and shower alert dallassensor_.start(); // Dallas external sensors analogsensor_.start(); // Analog external sensors