From ae2c0106107a30f21fbb40f54ff3d716fc806a81 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 10 Apr 2022 11:53:01 +0100 Subject: [PATCH] uhci: fix device speed setting when constructing a transfer descriptor. --- app/config.c | 2 +- system/uhci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config.c b/app/config.c index 50191ce..1f74ccb 100644 --- a/app/config.c +++ b/app/config.c @@ -97,7 +97,7 @@ bool enable_trace = false; bool enable_sm = true; bool enable_bench = true; -bool pause_at_start = false; +bool pause_at_start = true; power_save_t power_save = POWER_SAVE_HIGH; diff --git a/system/uhci.c b/system/uhci.c index ebc73fc..cbebdd6 100644 --- a/system/uhci.c +++ b/system/uhci.c @@ -272,7 +272,7 @@ static void disable_uhci_port(uint16_t io_base, int port_idx) static void build_uhci_td(uhci_td_t *td, const usb_ep_t *ep, uint32_t pid, uint32_t dt, uint32_t ioc, const void *buffer, size_t length) { - uint8_t device_speed = (ep->device_speed == USB_SPEED_LOW) ? UHCI_TD_LOW_SPEED : UHCI_TD_FULL_SPEED; + uint32_t device_speed = (ep->device_speed == USB_SPEED_LOW) ? UHCI_TD_LOW_SPEED : UHCI_TD_FULL_SPEED; if (ioc) { td->link_ptr = UHCI_LP_TERMINATE;