From fff0576150cdbe9bbd756af2fb7c43ff6ecb0251 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Wed, 21 Aug 2024 22:42:10 +0200 Subject: [PATCH] Fix: initialize HTTP(S)+JSON power meter values --- include/PowerMeterHttpJson.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/PowerMeterHttpJson.h b/include/PowerMeterHttpJson.h index a6c97a4c3..2a9e1dd2d 100644 --- a/include/PowerMeterHttpJson.h +++ b/include/PowerMeterHttpJson.h @@ -42,7 +42,7 @@ class PowerMeterHttpJson : public PowerMeterProvider { uint32_t _lastPoll = 0; mutable std::mutex _valueMutex; - power_values_t _powerValues; + power_values_t _powerValues = {}; std::array, POWERMETER_HTTP_JSON_MAX_VALUES> _httpGetters;