fixed low speed direct attach

This commit is contained in:
Oleg Mazurov 2013-07-08 12:46:32 -06:00
parent 06741b5a03
commit 3dea5b880f

View file

@ -452,9 +452,9 @@ void USB::Task(void) //USB state machine
lowspeed = false;
break;
case LSHOST:
// if ((usb_task_state & USB_STATE_MASK) == USB_STATE_DETACHED) {
lowspeed = true;
// }
lowspeed = true;
//intentional fallthrough
case FSHOST: //attached
if ((usb_task_state & USB_STATE_MASK) == USB_STATE_DETACHED) {
delay = millis() + USB_SETTLE_DELAY;