From c569c8725a8f188fe3a5ee0540c8aab71a48acb1 Mon Sep 17 00:00:00 2001 From: Just Call Me Koko <25190487+justcallmekoko@users.noreply.github.com> Date: Sat, 1 Feb 2020 13:58:48 -0500 Subject: [PATCH] Update drawButton comments --- Extensions/Button.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Extensions/Button.cpp b/Extensions/Button.cpp index c856b6e..321b477 100644 --- a/Extensions/Button.cpp +++ b/Extensions/Button.cpp @@ -85,6 +85,8 @@ void TFT_eSPI_Button::drawButton(uint8_t d, int padding, String button_name, boo uint8_t tempdatum = _gfx->getTextDatum(); _gfx->setTextDatum(d); + + // Button label will be limited length unless string argument is provided if (button_name == "") _gfx->drawString(_label, _x1 + padding, _y1 + (_h/2)); else