Issues#1983 Ensuring that button starts with curr/laststate = false, otherwise button may register as #justReleased on first iteration.
This commit is contained in:
parent
90fe790ff9
commit
358270b310
|
|
@ -40,5 +40,5 @@ class TFT_eSPI_Button : public TFT_eSPI {
|
|||
uint16_t _outlinecolor, _fillcolor, _textcolor;
|
||||
char _label[10]; // Button text is 9 chars maximum unless long_name used
|
||||
|
||||
bool currstate, laststate; // Button states
|
||||
bool currstate = false, laststate = false; // Button states
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue