We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f36a34 + fe73650 commit c07f208Copy full SHA for c07f208
src/MCP23017.cpp
@@ -72,7 +72,7 @@ uint8_t MCP23017::digitalRead(uint8_t pin)
72
}
73
74
gpio = readRegister(gpioreg);
75
- if(gpio & _BV(pin) == _BV(pin)) return HIGH;
+ if((gpio & _BV(pin)) == _BV(pin)) return HIGH;
76
return LOW;
77
78
0 commit comments