From 18fedbef310ba24007fdc3750047d75c5e168107 Mon Sep 17 00:00:00 2001 From: matei jordache Date: Tue, 6 Feb 2024 12:09:57 -0500 Subject: [PATCH] fix bug in new MCP code again (ugh) --- src/ayab/solenoids.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }