Skip to content

Commit

Permalink
Merge pull request VoodooI2C#20 from al3xtjames/commandgate
Browse files Browse the repository at this point in the history
Correct IOCommandGate::commandSleep call
  • Loading branch information
ben9923 committed Nov 1, 2019
2 parents 1c73062 + 33dae47 commit ee26207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VoodooI2CHID/VoodooI2CHIDDevice.cpp
Expand Up @@ -346,7 +346,7 @@ IOReturn VoodooI2CHIDDevice::resetHIDDeviceGated() {

read_in_progress = false;

IOReturn sleep = command_gate->commandSleep(&reset_event, absolute_time);
IOReturn sleep = command_gate->commandSleep(&reset_event, absolute_time, THREAD_UNINT);

if (sleep == THREAD_TIMED_OUT) {
IOLog("%s::%s Timeout waiting for device to complete host initiated reset\n", getName(), name);
Expand Down

0 comments on commit ee26207

Please sign in to comment.