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(); }