From 358270b310df28f0521c8450dd1783e37f4a33a2 Mon Sep 17 00:00:00 2001 From: william_wylas Date: Thu, 25 Aug 2022 16:48:55 +1000 Subject: [PATCH] Issues#1983 Ensuring that button starts with curr/laststate = false, otherwise button may register as #justReleased on first iteration. --- Extensions/Button.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/Button.h b/Extensions/Button.h index 7e0c509..3a1742e 100644 --- a/Extensions/Button.h +++ b/Extensions/Button.h @@ -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 };