mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fixed support for multiple controllers
Thanks Tim: http://blog.tkjelectronics.dk/2012/12/xbox-360-receiver-added-to-the-usb -host-library/#comment-262631
This commit is contained in:
parent
67b61dea17
commit
47d1a6b8b6
1 changed files with 1 additions and 1 deletions
|
@ -261,8 +261,8 @@ uint8_t XBOXRECV::Release() {
|
||||||
uint8_t XBOXRECV::Poll() {
|
uint8_t XBOXRECV::Poll() {
|
||||||
if (!bPollEnable)
|
if (!bPollEnable)
|
||||||
return 0;
|
return 0;
|
||||||
uint16_t BUFFER_SIZE = EP_MAXPKTSIZE;
|
|
||||||
for(uint8_t i=0;i<4;i++) {
|
for(uint8_t i=0;i<4;i++) {
|
||||||
|
uint16_t BUFFER_SIZE = EP_MAXPKTSIZE;
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case 0:
|
case 0:
|
||||||
pUsb->inTransfer(bAddress, epInfo[ XBOX_INPUT_PIPE_1 ].epAddr, &BUFFER_SIZE, readBuf);
|
pUsb->inTransfer(bAddress, epInfo[ XBOX_INPUT_PIPE_1 ].epAddr, &BUFFER_SIZE, readBuf);
|
||||||
|
|
Loading…
Reference in a new issue