From 57bbb0e17d9ba1a0f25578e5a300860ab8860cf4 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Mon, 26 Mar 2018 20:25:23 +0200 Subject: [PATCH] Fix wraparound from lowest value to highest value in menu value edit. --- Firmware/ultralcd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index a55fc2ed0..c7cf7431e 100644 --- a/Firmware/ultralcd.cpp +++ b/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 \ No newline at end of file +#endif //ULTRA_LCD