Browse Source

Merge pull request #579 from mkbel/fix_menu_edit

Fix wraparound from lowest value to highest value in menu value edit.
mkbel 6 năm trước cách đây
mục cha
commit
f81f749d17
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Firmware/ultralcd.cpp

+ 2 - 2
Firmware/ultralcd.cpp

@@ -335,7 +335,7 @@ volatile uint8_t slow_buttons;//Contains the bits of the currently pressed butto
 #endif
 uint8_t currentMenuViewOffset;              /* scroll offset in the current menu */
 uint8_t lastEncoderBits;
-uint16_t encoderPosition;
+uint32_t encoderPosition;
 #if (SDCARDDETECT > 0)
 bool lcd_oldcardstatus;
 #endif
@@ -7987,4 +7987,4 @@ void copy_and_scalePID_d()
 }
 */
 
-#endif //ULTRA_LCD
+#endif //ULTRA_LCD