encoder icon indicating copy to clipboard operation
encoder copied to clipboard

Issue with table based encoders

Open B-Thomas opened this issue 7 years ago • 1 comments

In line 92 of ClickEncoder.cpp the value of the lookup table (+1 / 0 / -1) is stored in a uint8_t datatype, instead it should be stored in an int8_t type according to the possible values.

uint8_t tbl = pgm_read_byte(&table[last]); if (tbl) { Serial.println(tbl); delta += tbl; moved = true; }

B-Thomas avatar Jan 02 '18 21:01 B-Thomas

Just FYI, this fix as well as other bug fixes and enhancements are in my fork of this library.

soligen2010 avatar Jan 03 '18 16:01 soligen2010