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.
This commit is contained in:
Alex Voinea 2023-04-24 09:15:31 +02:00
parent 32e68c33b4
commit c339711025
No known key found for this signature in database
GPG Key ID: 37EDFD565CB33BAD
1 changed files with 2 additions and 2 deletions

View File

@ -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;