Skip to content

Commit

Permalink
Made non-chatpad enabled controllers work again
Browse files Browse the repository at this point in the history
  • Loading branch information
colin committed Jan 3, 2013
1 parent b4cd3c6 commit 53abd96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 360Controller/_60Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,10 @@ bool Xbox360Peripheral::start(IOService *provider)
intf.bInterfaceProtocol = 2;
intf.bAlternateSetting = kIOUSBFindInterfaceDontCare;
serialIn = device->FindNextInterface(NULL, &intf);
if (serialIn == NULL)
{
if (serialIn == NULL) {
IOLog("start - unable to find chatpad interface\n");
goto fail;
}
goto nochat;
}
serialIn->open(this);
// Find chatpad pipe
pipe.direction = kUSBIn;
Expand Down Expand Up @@ -436,10 +435,11 @@ bool Xbox360Peripheral::start(IOService *provider)
serialTimerState = tsToggle;
serialTimer->setTimeoutMS(1000);
// Begin reading
if (!QueueSerialRead())
goto fail;
nochat:
if (!QueueRead())
goto fail;
if (!QueueSerialRead())
goto fail;
// Disable LED
Xbox360_Prepare(led,outLed);
led.pattern=ledOff;
Expand Down

0 comments on commit 53abd96

Please sign in to comment.