diff --git a/SRWS1.cpp b/SRWS1.cpp index fa33a7a0..19003a27 100644 --- a/SRWS1.cpp +++ b/SRWS1.cpp @@ -113,7 +113,7 @@ void SRWS1::setLeds(uint16_t leds) { uint8_t buf[3]; buf[0] = 0x40; // Report ID buf[1] = leds & 0xFF; - buf[2] = leds >> 8; + buf[2] = (leds >> 8) & 0x7F; pUsb->outTransfer(bAddress, epInfo[ hidInterfaces[0].epIndex[epInterruptOutIndex] ].epAddr, sizeof(buf), buf); }