Align bit logic
Mockband / build (push) Successful in 26s
Details
Mockband / build (push) Successful in 26s
Details
This commit is contained in:
parent
8beb164475
commit
fb3363fd6a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue