From fb3363fd6ab59020c58dc39b4ce3dc644ff6407a Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sun, 7 Jan 2024 21:37:18 -0700 Subject: [PATCH] Align bit logic --- MockBand.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MockBand.ino b/MockBand.ino index 85f3131..413ba05 100644 --- a/MockBand.ino +++ b/MockBand.ino @@ -132,7 +132,7 @@ void loop() { buttonState.buttons = (vbuttons & 0b1100111111); // +-..!OYRGB #ifdef GUITAR buttonState.buttons |= (vbuttons >> 10) & 0b11111; // Solo keys - bitWrite(buttonState.buttons, 6, vbuttons & (0b11111 << 10)); // Solo modifier + bitWrite(buttonState.buttons, 6, (vbuttons >> 10) & 0b11111); // Solo modifier if (bitRead(vbuttons, 6)) { buttonState.hatAndConstant = 0; // up