From c339711025af7c16719da30242f00ef9c7a63ecd Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 24 Apr 2023 09:15:31 +0200 Subject: [PATCH] Make the encrot table balanced It won't change much. It is not possible to determine in which direction the encoder spun when two steps are made, so just use + or - 2. --- Firmware/lcd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/lcd.cpp b/Firmware/lcd.cpp index e6a2d4c40..13d8c7106 100644 --- a/Firmware/lcd.cpp +++ b/Firmware/lcd.cpp @@ -786,8 +786,8 @@ void lcd_buttons_update(void) static const int8_t encrot_table[] PROGMEM = { 0, -1, 1, 2, 1, 0, 2, -1, - -1, 2, 0, 1, - 2, 1, -1, 0, + -1, -2, 0, 1, + -2, 1, -1, 0, }; static uint8_t enc_bits_old = 0;