From 463028792420a82247c7edae5419134b6645c0dd Mon Sep 17 00:00:00 2001 From: Proddy Date: Sat, 11 Feb 2023 12:14:28 +0100 Subject: [PATCH] fix warning when building native on windows --- src/devices/boiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index 8ad7f0913..da99bc806 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -1455,7 +1455,8 @@ void Boiler::process_UBAErrorMessage2(std::shared_ptr telegram) snprintf(&code[3], sizeof(code) - 3, "(%d) %02d.%02d.%04d %02d:%02d - now", codeNo, start_day, start_month, start_year, start_hour, start_min); } } else { // no clock, the uptime is stored https://github.com/emsesp/EMS-ESP32/issues/121 - uint32_t starttime, endtime; + uint32_t starttime = 0; + uint32_t endtime = 0; telegram->read_value(starttime, 11, 3); telegram->read_value(endtime, 16, 3); snprintf(&code[3], sizeof(code) - 3, "(%d) @uptime %d - %d min", codeNo, starttime, endtime);