Skip to content

Commit

Permalink
Merge pull request #223 from popy2k14/brightness_fix
Browse files Browse the repository at this point in the history
Fix uninitialized brighntess_ variable
  • Loading branch information
lubeda authored Mar 31, 2024
2 parents 4125c41 + d7259bb commit 6a0818f
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 6a0818f

Please sign in to comment.