From d7259bbe034f235b64d4cf5be495ba92e331a31d Mon Sep 17 00:00:00 2001 From: popy2k14 Date: Sun, 31 Mar 2024 12:19:01 +0200 Subject: [PATCH] Fix uninitialized brighntess_ variable fiyes weired brightness issues at boot --- components/ehmtxv2/EHMTX.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ehmtxv2/EHMTX.h b/components/ehmtxv2/EHMTX.h index a462b444..40573e66 100644 --- a/components/ehmtxv2/EHMTX.h +++ b/components/ehmtxv2/EHMTX.h @@ -80,7 +80,7 @@ namespace esphome { protected: float get_setup_priority() const override { return esphome::setup_priority::LATE; } - uint8_t brightness_; + uint8_t brightness_ = 0; uint8_t target_brightness_; uint32_t boot_anim = 0; uint8_t screen_pointer;