diff options
| author | Zixun LI <[email protected]> | 2026-04-24 11:19:41 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-24 11:19:41 +0200 |
| commit | 4c7fd70e53b34bf63ef9334f2b5624cac48299f1 (patch) | |
| tree | 827d5c3ab5e53bdf2ab633a5805715ef05c8e686 /src/class | |
| parent | 1e644339fd984fd6168b8cc09728d3bb56f2eea2 (diff) | |
| parent | 5939831f17272571911d089508b458f496a4cc62 (diff) | |
Merge pull request #3597 from canokeys/big-endian-for-setup-packets
fix #3596: big-endian host support for SETUP packet handling
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/mtp/mtp_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/mtp/mtp_device.c b/src/class/mtp/mtp_device.c index 59096e476..0da984f4a 100644 --- a/src/class/mtp/mtp_device.c +++ b/src/class/mtp/mtp_device.c @@ -321,7 +321,7 @@ bool mtpd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t .session_id = p_mtp->session_id, .request = request, .buf = p_mtp->control_buf, - .bufsize = tu_le16toh(request->wLength), + .bufsize = request->wLength, }; switch (request->bRequest) { |
