Skip to content

Commit 73ba032

Browse files
committed
clean up
1 parent b2e49f2 commit 73ba032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/RotaryEncoder/SwRotaryEncoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ void SwRotaryEncoder::clearAbs(void)
120120

121121
void SwRotaryEncoder::_irq_handler(void)
122122
{
123-
uint8_t val = digitalRead(_pina);
123+
uint8_t val = (uint8_t) digitalRead(_pina);
124124

125125
if ( val != _a_last )
126126
{
127127
int32_t step = 0;
128128

129-
if ( val != digitalRead(_pinb) )
129+
if ( val != ((uint8_t) digitalRead(_pinb)) )
130130
{
131131
step = 1;
132132
}else

0 commit comments

Comments
 (0)