Browse Source

Make encoderLine signed for proper compares

Scott Lahteine 9 years ago
parent
commit
31f2cf5f6f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp View File

@@ -223,7 +223,7 @@ uint8_t lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; // Set when the LCD needs to
223 223
     ENCODER_DIRECTION_MENUS(); \
224 224
     encoderRateMultiplierEnabled = false; \
225 225
     if (encoderPosition > 0x8000) encoderPosition = 0; \
226
-    uint8_t encoderLine = encoderPosition / ENCODER_STEPS_PER_MENU_ITEM; \
226
+    int8_t encoderLine = encoderPosition / ENCODER_STEPS_PER_MENU_ITEM; \
227 227
     NOMORE(encoderTopLine, encoderLine); \
228 228
     uint8_t _lineNr = encoderTopLine, _menuItemNr; \
229 229
     CODE; \

Loading…
Cancel
Save