rotarybugfix fix

This commit is contained in:
Frank
2022-12-05 14:20:38 +01:00
parent fced662e49
commit a2c707831c
2 changed files with 2 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ public:
if (currentTime >= (loopTime + 2)) // 2ms since last check of encoder = 500Hz
{
button_state = digitalRead(pinC);
if (pinC >= 0) button_state = digitalRead(pinC);
if (prev_button_state != button_state)
{
if (button_state == LOW)