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
     ENCODER_DIRECTION_MENUS(); \
223
     ENCODER_DIRECTION_MENUS(); \
224
     encoderRateMultiplierEnabled = false; \
224
     encoderRateMultiplierEnabled = false; \
225
     if (encoderPosition > 0x8000) encoderPosition = 0; \
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
     NOMORE(encoderTopLine, encoderLine); \
227
     NOMORE(encoderTopLine, encoderLine); \
228
     uint8_t _lineNr = encoderTopLine, _menuItemNr; \
228
     uint8_t _lineNr = encoderTopLine, _menuItemNr; \
229
     CODE; \
229
     CODE; \

Loading…
Cancel
Save