diff options
| author | ZakDanger <[email protected]> | 2025-05-09 20:42:19 +1000 |
|---|---|---|
| committer | ZakDanger <[email protected]> | 2025-05-09 20:42:19 +1000 |
| commit | ae8c00f5d79629eddb22b9b442cd72f892b5eef6 (patch) | |
| tree | a01469ee8dd0fe4ac06594b9f24dd34594b75894 /src | |
| parent | f5944d35b093f63a9bd66a1b4a7414b7db5dce44 (diff) | |
revert 'end fix'
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/vendor/vendor_device.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/class/vendor/vendor_device.c b/src/class/vendor/vendor_device.c index d7cef20ff..6f41a9f3b 100644 --- a/src/class/vendor/vendor_device.c +++ b/src/class/vendor/vendor_device.c @@ -196,9 +196,8 @@ void vendord_reset(uint8_t rhport) { uint16_t vendord_open(uint8_t rhport, const tusb_desc_interface_t* desc_itf, uint16_t max_len) { TU_VERIFY(TUSB_CLASS_VENDOR_SPECIFIC == desc_itf->bInterfaceClass, 0); - const uint8_t* p_desc = (const uint8_t*)desc_itf; - const uint8_t* desc_end = p_desc + max_len; - p_desc = tu_desc_next(p_desc); + const uint8_t* p_desc = tu_desc_next(p_desc); + const uint8_t* desc_end = (const uint8_t*)desc_itf + max_len; // Find available interface vendord_interface_t* p_vendor = NULL; |
