Issues#1983 Ensuring that button starts with curr/laststate = false, otherwise button may register as #justReleased on first iteration.

This commit is contained in:
william_wylas 2022-08-25 16:48:55 +10:00
parent 90fe790ff9
commit 358270b310
1 changed files with 1 additions and 1 deletions

View File

@ -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
};