Align bit logic
Mockband / build (push) Successful in 26s Details

This commit is contained in:
Neale Pickett 2024-01-07 21:37:18 -07:00
parent 8beb164475
commit fb3363fd6a
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ void loop() {
buttonState.buttons = (vbuttons & 0b1100111111); // +-..!OYRGB buttonState.buttons = (vbuttons & 0b1100111111); // +-..!OYRGB
#ifdef GUITAR #ifdef GUITAR
buttonState.buttons |= (vbuttons >> 10) & 0b11111; // Solo keys 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)) { if (bitRead(vbuttons, 6)) {
buttonState.hatAndConstant = 0; // up buttonState.hatAndConstant = 0; // up