Skip to content
Snippets Groups Projects
Commit a9254075 authored by Dean Camera's avatar Dean Camera
Browse files

Oops - fix Host mode pre-enumeration settle delay being ignored leading to...

Oops - fix Host mode pre-enumeration settle delay being ignored leading to failure to enumerate certain devices.
parent d6e3259f
No related branches found
No related tags found
No related merge requests found
...@@ -66,14 +66,12 @@ void USB_Host_ProcessNextHostState(void) ...@@ -66,14 +66,12 @@ void USB_Host_ProcessNextHostState(void)
USB_HostState = HOST_STATE_Powered_WaitForDeviceSettle; USB_HostState = HOST_STATE_Powered_WaitForDeviceSettle;
break; break;
case HOST_STATE_Powered_WaitForDeviceSettle: case HOST_STATE_Powered_WaitForDeviceSettle:
#if HOST_DEVICE_SETTLE_DELAY_MS > 0
if (!(WaitMSRemaining--)) if (!(WaitMSRemaining--))
{ {
_delay_ms(1); _delay_ms(1);
break; break;
} }
else else
#endif
{ {
USB_Host_VBUS_Manual_Off(); USB_Host_VBUS_Manual_Off();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment