Fix an issue with shifted LCD lines
This commit is contained in:
parent
e4d2662d81
commit
ff6b23cb0f
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ uint8_t lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; // Set when the LCD needs to
|
|||
static int8_t _countedItems = 0; \
|
||||
int8_t encoderLine = encoderPosition / ENCODER_STEPS_PER_MENU_ITEM; \
|
||||
if (_countedItems > 0 && encoderLine >= _countedItems - LIMIT) { \
|
||||
encoderLine = _countedItems - LIMIT; \
|
||||
encoderLine = max(0, _countedItems - LIMIT); \
|
||||
encoderPosition = encoderLine * (ENCODER_STEPS_PER_MENU_ITEM); \
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue