summaryrefslogtreecommitdiff
path: root/common/usbx_host_classes/src/ux_host_class_hub_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usbx_host_classes/src/ux_host_class_hub_entry.c')
-rw-r--r--common/usbx_host_classes/src/ux_host_class_hub_entry.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/usbx_host_classes/src/ux_host_class_hub_entry.c b/common/usbx_host_classes/src/ux_host_class_hub_entry.c
index 9a968d8..e73c2e1 100644
--- a/common/usbx_host_classes/src/ux_host_class_hub_entry.c
+++ b/common/usbx_host_classes/src/ux_host_class_hub_entry.c
@@ -41,7 +41,7 @@ static inline UINT _ux_host_class_hub_activate_wait(UX_HOST_CLASS_COMMAND *comma
/* FUNCTION RELEASE */
/* */
/* _ux_host_class_hub_entry PORTABLE C */
-/* 6.2.0 */
+/* 6.x */
/* AUTHOR */
/* */
/* Chaoqiong Xiao, Microsoft Corporation */
@@ -84,6 +84,9 @@ static inline UINT _ux_host_class_hub_activate_wait(UX_HOST_CLASS_COMMAND *comma
/* 10-31-2022 Chaoqiong Xiao Modified comment(s), */
/* fixed power on delay calc, */
/* resulting in version 6.2.0 */
+/* xx-xx-xxxx Chaoqiong Xiao Modified comment(s), */
+/* fixed compile warnings, */
+/* resulting in version 6.x */
/* */
/**************************************************************************/
UINT _ux_host_class_hub_entry(UX_HOST_CLASS_COMMAND *command)
@@ -359,7 +362,7 @@ ULONG current_ms, elapsed_ms;
/* Delay a while (as described by hub descriptor). */
hub -> ux_host_class_hub_wait_start = _ux_utility_time_get();
- hub -> ux_host_class_hub_wait_ms = UX_MS_TO_TICK_NON_ZERO(hub -> ux_host_class_hub_descriptor.bPwrOn2PwrGood << 1);
+ hub -> ux_host_class_hub_wait_ms = UX_MS_TO_TICK_NON_ZERO((ULONG)hub -> ux_host_class_hub_descriptor.bPwrOn2PwrGood << 1);
hub -> ux_host_class_hub_enum_state = UX_HOST_CLASS_HUB_ENUM_TRANS_WAIT;
hub -> ux_host_class_hub_next_state = UX_HOST_CLASS_HUB_ENUM_PORT_POWER_ON;