Skip to content

Commit

Permalink
emove "Suspend to Disk fix", seems to make problems on some windows v…
Browse files Browse the repository at this point in the history
…ersions
  • Loading branch information
borg42 committed Apr 9, 2014
1 parent c8e767d commit 7f79148
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion com/usb/usb.c
Expand Up @@ -118,7 +118,9 @@ inline uint16_t usb_send(const void *data, const uint16_t length, uint32_t *opti
// We sometimes come to this state if the PC/laptop is on suspend to disk.
// In that case it seems that the USB is in LOCKED state forever.
// So we are cautionary and cancel all IO.
USBD_HAL_CancelIo(0xFFFF);

// TODO: Fixme: Seems to make problems on some Windows versions!
//USBD_HAL_CancelIo(0xFFFF);
return 0;
}
}
Expand Down

0 comments on commit 7f79148

Please sign in to comment.