guiDrawButton return value fix
This commit is contained in:
parent
bbfc18bc27
commit
574f97a7a1
1 changed files with 2 additions and 1 deletions
3
gui.c
3
gui.c
|
@ -125,7 +125,8 @@ uint8_t guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, char *
|
|||
newNode->active = active;
|
||||
newNode->state = state;
|
||||
|
||||
addNode(newNode);
|
||||
if(addNode(newNode) != 1)
|
||||
return 0;
|
||||
|
||||
lcdDrawRectString(x0, y0, x1, y1, str, fontColor, buttonColor);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue