clean up
This commit is contained in:
1 parent
b2e49f2fc9
commit
73ba032939
1 file changed
+2
-2
@@ -120,13 +120,13 @@ void SwRotaryEncoder::clearAbs(void)
|
||||
|
||||
void SwRotaryEncoder::_irq_handler(void)
|
||||
{
|
||||
uint8_t val = digitalRead(_pina);
|
||||
uint8_t val = (uint8_t) digitalRead(_pina);
|
||||
|
||||
if ( val != _a_last )
|
||||
{
|
||||
int32_t step = 0;
|
||||
|
||||
if ( val != digitalRead(_pinb) )
|
||||
if ( val != ((uint8_t) digitalRead(_pinb)) )
|
||||
{
|
||||
step = 1;
|
||||
}else
|
||||
|
||||
Reference in new issue
Block a user