mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
fixed low speed direct attach
This commit is contained in:
parent
06741b5a03
commit
3dea5b880f
1 changed files with 3 additions and 3 deletions
4
Usb.cpp
4
Usb.cpp
|
@ -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;
|
||||
// }
|
||||
//intentional fallthrough
|
||||
case FSHOST: //attached
|
||||
if ((usb_task_state & USB_STATE_MASK) == USB_STATE_DETACHED) {
|
||||
delay = millis() + USB_SETTLE_DELAY;
|
||||
|
|
Loading…
Reference in a new issue