diff --git a/src/ayab/solenoids.cpp b/src/ayab/solenoids.cpp index 0659283d..b8a021c8 100644 --- a/src/ayab/solenoids.cpp +++ b/src/ayab/solenoids.cpp @@ -123,7 +123,7 @@ void Solenoids::write(uint16_t newState) { bankB << 1; } - mcp.writeGPIOAB(bankA & bankB); + mcp.writeGPIOAB(bankA & (bankB << 8)); #endif }