Skip to content

Commit

Permalink
Fix uninitialized brighntess_ variable
Browse files Browse the repository at this point in the history
fiyes weired brightness issues at boot
  • Loading branch information
popy2k14 authored Mar 31, 2024
1 parent 8c123d0 commit d7259bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ehmtxv2/EHMTX.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d7259bb

Please sign in to comment.