Skip to content

Commit

Permalink
Do not update screen anymore when bounds reached for ItemProgress
Browse files Browse the repository at this point in the history
  • Loading branch information
forntoh committed Jan 29, 2024
1 parent c115305 commit 8ada468
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/LcdMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -630,12 +630,13 @@ class LcdMenu {
#endif
#ifdef ItemProgress_H
case MENU_ITEM_PROGRESS: {
if (isInEditMode()) {
if (isInEditMode() && item->getItemIndex() > MIN_PROGRESS) {
item->decrement();
update();
// Log
printCmd(F("LEFT"), item->getValue());
}
break;
}
#endif
default:
Expand Down Expand Up @@ -689,7 +690,7 @@ class LcdMenu {
#endif
#ifdef ItemProgress_H
case MENU_ITEM_PROGRESS: {
if (isInEditMode()) {
if (isInEditMode() && item->getItemIndex() < MAX_PROGRESS) {
item->increment();
update();
// Log
Expand Down

0 comments on commit 8ada468

Please sign in to comment.