mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Make sure that a invalid LED report is not sent
Does not seem to make any difference, but just in case
This commit is contained in:
parent
fb541dc8b9
commit
4b14c6910c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue