summaryrefslogtreecommitdiff
path: root/src/class/msc
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-16 15:12:59 +0700
committerhathach <[email protected]>2022-03-16 18:44:41 +0700
commit98d4ed05845e3a2efb32b0817d635457698b8cc9 (patch)
treefe2725f5d0e173e82504f5c052c8ebfaf149a3bd /src/class/msc
parentfd2ea2605e67673d4264b56649612b34fa93807d (diff)
update hid host to use new control xfer for set config
Diffstat (limited to 'src/class/msc')
-rw-r--r--src/class/msc/msc_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/msc/msc_host.c b/src/class/msc/msc_host.c
index c009e5088..b3af65942 100644
--- a/src/class/msc/msc_host.c
+++ b/src/class/msc/msc_host.c
@@ -483,7 +483,7 @@ static bool config_read_capacity_complete(uint8_t dev_addr, msc_cbw_t const* cbw
// Capacity response field: Block size and Last LBA are both Big-Endian
scsi_read_capacity10_resp_t* resp = (scsi_read_capacity10_resp_t*) ((void*) _msch_buffer);
p_msc->capacity[cbw->lun].block_count = tu_ntohl(resp->last_lba) + 1;
- p_msc->capacity[cbw->lun].block_size = tu_ntohl(resp->block_size);
+ p_msc->capacity[cbw->lun].block_size = tu_ntohl(resp->block_size);
// Mark enumeration is complete
p_msc->mounted = true;