mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 04:41:28 +00:00
Fixed host state machine not enabling Auto VBUS mode when HOST_DEVICE_SETTLE_DELAY_MS is set to zero.
This commit is contained in:
parent
e4bf986bb3
commit
59ed10273c
@ -67,9 +67,13 @@ void USB_Host_ProcessNextHostState(void)
|
|||||||
break;
|
break;
|
||||||
case HOST_STATE_Powered_WaitForDeviceSettle:
|
case HOST_STATE_Powered_WaitForDeviceSettle:
|
||||||
#if HOST_DEVICE_SETTLE_DELAY_MS > 0
|
#if HOST_DEVICE_SETTLE_DELAY_MS > 0
|
||||||
_delay_ms(1);
|
|
||||||
|
|
||||||
if (!(WaitMSRemaining--))
|
if (!(WaitMSRemaining--))
|
||||||
|
{
|
||||||
|
_delay_ms(1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
USB_Host_VBUS_Manual_Off();
|
USB_Host_VBUS_Manual_Off();
|
||||||
|
|
||||||
@ -79,9 +83,6 @@ void USB_Host_ProcessNextHostState(void)
|
|||||||
|
|
||||||
USB_HostState = HOST_STATE_Powered_WaitForConnect;
|
USB_HostState = HOST_STATE_Powered_WaitForConnect;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
USB_HostState = HOST_STATE_Powered_WaitForConnect;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case HOST_STATE_Powered_WaitForConnect:
|
case HOST_STATE_Powered_WaitForConnect:
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
* - Fixed misnamed SI_Host_USBTask() and SI_Host_ConfigurePipes() functions
|
* - Fixed misnamed SI_Host_USBTask() and SI_Host_ConfigurePipes() functions
|
||||||
* - Fixed broken USB_GetNextDescriptor() function causing the descriptor to jump ahead double the expected amount
|
* - Fixed broken USB_GetNextDescriptor() function causing the descriptor to jump ahead double the expected amount
|
||||||
* - Fixed Pipe_IsEndpointBound() not masking the given Endpoint Address against PIPE_EPNUM_MASK
|
* - Fixed Pipe_IsEndpointBound() not masking the given Endpoint Address against PIPE_EPNUM_MASK
|
||||||
|
* - Fixed host state machine not enabling Auto VBUS mode when HOST_DEVICE_SETTLE_DELAY_MS is set to zero
|
||||||
*
|
*
|
||||||
* \section Sec_ChangeLog091122 Version 091122
|
* \section Sec_ChangeLog091122 Version 091122
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user