Skip to content

Commit

Permalink
Fix uninitialized members _pressed and _last_press in LGFX_Button for…
Browse files Browse the repository at this point in the history
… stable behavior
  • Loading branch information
lovyan03 committed Feb 26, 2024
1 parent c2bdf8e commit f1db539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lgfx/v1/LGFX_Button.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace lgfx
static constexpr size_t label_length = 11;
char _label[label_length + 1]; // Button text is 11 chars maximum unless long_name used
float _textsize_x, _textsize_y;
bool _pressed, _last_press; // Button states
bool _pressed = false, _last_press = false; // Button states
};

//----------------------------------------------------------------------------
Expand Down

0 comments on commit f1db539

Please sign in to comment.