diff options
| author | sakumisu <[email protected]> | 2026-04-21 21:42:44 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2026-04-21 21:42:44 +0800 |
| commit | daec613f56a4918a1ab09f0c4afd21a463ac099a (patch) | |
| tree | cb77b99af9ad4ed0a98b1cb8ec0896af8dc70586 | |
| parent | 9ce1b1cee3ad712bbc3d2019f0f49d69987ce2d7 (diff) | |
fix(class/msc/usbd_msc): fix inquiry80 size
Signed-off-by: sakumisu <[email protected]>
| -rw-r--r-- | class/msc/usbd_msc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/class/msc/usbd_msc.c b/class/msc/usbd_msc.c index a8ea6996..6523ffb9 100644 --- a/class/msc/usbd_msc.c +++ b/class/msc/usbd_msc.c @@ -69,7 +69,6 @@ static void usdb_msc_set_max_lun(uint8_t busid) static void usbd_msc_reset(uint8_t busid) { g_usbd_msc[busid].stage = MSC_READ_CBW; - g_usbd_msc[busid].readonly = false; } static int msc_storage_class_interface_request_handler(uint8_t busid, struct usb_setup_packet *setup, uint8_t **data, uint32_t *len) @@ -289,7 +288,7 @@ static bool SCSI_inquiry(uint8_t busid, uint8_t **data, uint32_t *len) 0x00, 0x80, 0x00, - 0x08, + (0x08 - 4U), 0x20, /* Put Product Serial number */ 0x20, 0x20, |
