mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Just get the endpoint address directly from the epInfo struct
This commit is contained in:
parent
912decede5
commit
b62528d813
2 changed files with 2 additions and 3 deletions
2
PS4USB.h
2
PS4USB.h
|
@ -109,7 +109,7 @@ protected:
|
|||
|
||||
// The PS4 console actually set the four last bytes to a CRC32 checksum, but it seems like it is actually not needed
|
||||
|
||||
pUsb->outTransfer(bAddress, epInfo[ hidInterfaces[0].epIndex[epInterruptOutIndex] ].epAddr, sizeof(buf), buf);
|
||||
pUsb->outTransfer(bAddress, epInfo[epInterruptOutIndex].epAddr, sizeof(buf), buf);
|
||||
};
|
||||
/**@}*/
|
||||
|
||||
|
|
|
@ -44,6 +44,5 @@ void SRWS1::setLeds(uint16_t leds) {
|
|||
buf[0] = 0x40; // Report ID
|
||||
buf[1] = leds & 0xFF;
|
||||
buf[2] = (leds >> 8) & 0x7F;
|
||||
pUsb->outTransfer(bAddress, epInfo[ hidInterfaces[0].epIndex[epInterruptOutIndex] ].epAddr, sizeof(buf), buf);
|
||||
pUsb->outTransfer(bAddress, epInfo[epInterruptOutIndex].epAddr, sizeof(buf), buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue