diff --git a/.github/workflows/compile-arduino.yml b/.github/workflows/compile-arduino.yml index c3400bd8..e5d573c2 100644 --- a/.github/workflows/compile-arduino.yml +++ b/.github/workflows/compile-arduino.yml @@ -1,5 +1,5 @@ name: Compile Examples -on: [pull_request_target] +on: [pull_request_target, pull_request] jobs: compile: diff --git a/src/LcdMenu.h b/src/LcdMenu.h index 4736991b..74a9e6d7 100644 --- a/src/LcdMenu.h +++ b/src/LcdMenu.h @@ -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 */ @@ -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;