{"action":"created","issue":{"url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/216","repository_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0","labels_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/216/comments","events_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/216/events","html_url":"https://github.com/felis/USB_Host_Shield_2.0/issues/216","id":138546122,"number":216,"title":"PS3USB and XBOXONE not working","user":{"login":"bbx10","id":1388441,"avatar_url":"https://avatars.githubusercontent.com/u/1388441?v=3","gravatar_id":"","url":"https://api.github.com/users/bbx10","html_url":"https://github.com/bbx10","followers_url":"https://api.github.com/users/bbx10/followers","following_url":"https://api.github.com/users/bbx10/following{/other_user}","gists_url":"https://api.github.com/users/bbx10/gists{/gist_id}","starred_url":"https://api.github.com/users/bbx10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbx10/subscriptions","organizations_url":"https://api.github.com/users/bbx10/orgs","repos_url":"https://api.github.com/users/bbx10/repos","events_url":"https://api.github.com/users/bbx10/events{/privacy}","received_events_url":"https://api.github.com/users/bbx10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-04T18:19:17Z","updated_at":"2016-03-07T21:56:01Z","closed_at":null,"body":"IDE 1.6.7, UHS2 library 1.2.1\r\n\r\nThe discussion started on arduino.cc.\r\n\r\nhttp://forum.arduino.cc/index.php?topic=382891.0\r\n\r\nMy PS3 controller connected via USB worked with an older version (1.0.0) of the library but does not work with 1.2.1. I found a workaround which involves commenting out 1 line in Usb.cpp. I am not sure this is the right way to fix the problem since this affects all USB devices. Debug output showed a stream of data toggle errors so I commented out the line that recovers from toggle errors. I can create a PR but this might break some other device.\r\n\r\n```\r\nUsb.cpp\r\n@@ -234,7 +234,7 @@\r\n                 rcode = dispatchPkt(tokIN, pep->epAddr, nak_limit); //IN packet to EP-'endpoint'. Function takes care of NAKS.\r\n                 if(rcode == hrTOGERR) {\r\n                         // yes, we flip it wrong here so that next time it is actually correct!\r\n+                        // no, do not flip it because it generates more toggle errors\r\n+                        //pep->bmRcvToggle = (regRd(rHRSL) & bmRCVTOGRD) ? 0 : 1;\r\n-                        pep->bmRcvToggle = (regRd(rHRSL) & bmRCVTOGRD) ? 0 : 1;\r\n                         regWr(rHCTL, (pep->bmRcvToggle) ? bmRCVTOG1 : bmRCVTOG0); //set toggle value\r\n                         continue;\r\n                 }\r\n\r\n```\r\n\r\nAnother user has a similar problem with an XBOX ONE controller but the 1 line workaround does not help. I do not have an XBOX ONE controller so I can not do much more. I will post a link to this issue on the arduino.cc thread."},"comment":{"url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/comments/193473163","html_url":"https://github.com/felis/USB_Host_Shield_2.0/issues/216#issuecomment-193473163","issue_url":"https://api.github.com/repos/felis/USB_Host_Shield_2.0/issues/216","id":193473163,"user":{"login":"bbx10","id":1388441,"avatar_url":"https://avatars.githubusercontent.com/u/1388441?v=3","gravatar_id":"","url":"https://api.github.com/users/bbx10","html_url":"https://github.com/bbx10","followers_url":"https://api.github.com/users/bbx10/followers","following_url":"https://api.github.com/users/bbx10/following{/other_user}","gists_url":"https://api.github.com/users/bbx10/gists{/gist_id}","starred_url":"https://api.github.com/users/bbx10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbx10/subscriptions","organizations_url":"https://api.github.com/users/bbx10/orgs","repos_url":"https://api.github.com/users/bbx10/repos","events_url":"https://api.github.com/users/bbx10/events{/privacy}","received_events_url":"https://api.github.com/users/bbx10/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T21:56:01Z","updated_at":"2016-03-07T21:56:01Z","body":"The XBOXONE user reports #174 does not help. USB keyboard/mouse works so the shield hardware is working."}}