Skip to content

Commit

Permalink
Fixed 12864 issue: values were not refreshed when being adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Jun 8, 2023
1 parent 41c2d4d commit 430cd0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Display/ValueMenuItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ void ValueMenuItem::Draw(Lcd& lcd, PixelNumber rightMargin, bool highlight) noex
error = true;
break;
}
itemChanged = (error || currentValue != oldValue);
}
itemChanged = (error || currentValue != oldValue);
// else we are adjusting, so itemChanged should already be set
}

if (itemChanged || !drawn || (highlight != highlighted))
Expand Down

0 comments on commit 430cd0c

Please sign in to comment.