Skip to content

Commit

Permalink
setLabel modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ihakov2 committed Oct 26, 2023
1 parent 7143b8e commit 9fbafe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Adafruit_GFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1734,6 +1734,7 @@ bool Adafruit_GFX_Button::justReleased() { return (!currstate && laststate); }
void Adafruit_GFX_Button::setLabel(char *label) {
strncpy(_label, label, 9);
_label[9] = 0;
drawButton();
}
/**************************************************************************/
/*!
Expand Down

0 comments on commit 9fbafe4

Please sign in to comment.