From 64122c6a345e40ae2d521b07597dea43fb030c93 Mon Sep 17 00:00:00 2001 From: ildus hakov Date: Thu, 26 Oct 2023 18:54:55 -0400 Subject: [PATCH] mod2 --- Adafruit_GFX.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Adafruit_GFX.cpp b/Adafruit_GFX.cpp index 1434296d..cb26376a 100644 --- a/Adafruit_GFX.cpp +++ b/Adafruit_GFX.cpp @@ -1753,6 +1753,7 @@ char *Adafruit_GFX_Button::getLabel() { return _label; } void Adafruit_GFX_Button::setEnabled(bool enable, uint16_t fillColor) { _enabled = enable; _fillcolor = fillColor; + currstate = (enable? currstate: false); drawButton(); }