summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorFan DANG <[email protected]>2026-04-17 18:39:56 +0800
committerFan DANG <[email protected]>2026-04-17 18:39:56 +0800
commit5939831f17272571911d089508b458f496a4cc62 (patch)
treea12d00a818aa4850440925651d59281bd7b35b98 /src/device
parent41462d2b79d5c7f82ce9e8fa8268b342f3f89a67 (diff)
remove duplicated tu_le16toh since we have converted the endian when setup.
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 3c14175f6..da0ffb4c6 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1212,7 +1212,7 @@ static bool process_get_descriptor(uint8_t rhport, tusb_control_request_t const
TU_LOG_USBD(" String[%u]\r\n", desc_index);
// String Descriptor always uses the desc set from user
- uint8_t const* desc_str = (uint8_t const*) tud_descriptor_string_cb(desc_index, tu_le16toh(p_request->wIndex));
+ uint8_t const* desc_str = (uint8_t const*) tud_descriptor_string_cb(desc_index, p_request->wIndex);
TU_VERIFY(desc_str);
// first byte of descriptor is its size