Skip to content

Commit

Permalink
usbctrl: shut up!
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxuser committed Jan 26, 2012
1 parent 374c9e9 commit 69942fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libxenon/drivers/usb/usbctrl.c
Expand Up @@ -315,10 +315,10 @@ static int usbctrl_ireq_callback(usbreq_t *ur)
//FIXME: A polled, disconnected controller may cause uneeded spam of the controller status message
if(uhid->index == -1)
{
printf("Wireless controller %i has connected\n", uhid->wireless_index);
//printf("Wireless controller %i has connected\n", uhid->wireless_index);
int i;
for (i = 0; controller_mask & (1<<i); ++i);
printf("attached controller %d\n", i);
//printf("attached controller %d\n", i);
uhid->index = i;
setcontroller(uhid, uhid->index);
controller_mask |= 1<<i;
Expand All @@ -329,8 +329,8 @@ static int usbctrl_ireq_callback(usbreq_t *ur)

if (b[0] == 0x8 && b[1] == 0x0)
{
printf("Wireless controller %i has disconnected\n", uhid->wireless_index);
printf("detatched controller %d\n", uhid->index);
//printf("Wireless controller %i has disconnected\n", uhid->wireless_index);
//printf("detatched controller %d\n", uhid->index);
setcontroller(NULL, uhid->index);
controller_mask &= ~(1<<uhid->index);

Expand Down

0 comments on commit 69942fa

Please sign in to comment.