Skip to content

Commit

Permalink
Fix compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
forntoh committed Sep 17, 2024
1 parent bd65b59 commit 162efcb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile-arduino.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Compile Examples
on: [pull_request_target]
on: [pull_request_target, pull_request]

jobs:
compile:
Expand Down
22 changes: 11 additions & 11 deletions src/LcdMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,6 @@ class LcdMenu {
lcd.drawCursor(); // In case if currentPosition was not changed between screens
}

/*
* Draw the menu items and cursor
*/
void update() {
if (!enableUpdate) {
return;
}
drawMenu();
lcd.drawCursor();
}

/*
* Draw the cursor
*/
Expand Down Expand Up @@ -153,6 +142,17 @@ class LcdMenu {
lcd.drawCursor();
}

/*
* Draw the menu items and cursor
*/
void update() {
if (!enableUpdate) {
return;
}
drawMenu();
lcd.drawCursor();
}

bool process(const unsigned char c) {
if (currentMenuTable[cursorPosition]->process(c)) {
return true;
Expand Down

0 comments on commit 162efcb

Please sign in to comment.