diff --git a/IO_EXIOExpander.h b/IO_EXIOExpander.h index cb31528..d7d73ae 100644 --- a/IO_EXIOExpander.h +++ b/IO_EXIOExpander.h @@ -156,7 +156,7 @@ private: int _read(VPIN vpin) override { int pin = vpin - _firstVpin; uint8_t pinByte = pin / 8; - bool value = _digitalInputStates[pinByte] >> (pin - pinByte * 8); + bool value = bitRead(_digitalInputStates[pinByte], pin - pinByte * 8); return value; }