diff options
| author | hathach <[email protected]> | 2019-05-14 13:06:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-05-14 13:06:38 +0700 |
| commit | 454496316fa30512aca472a6798898c44fb7699b (patch) | |
| tree | 1720f2514be49485c6a5d9b1bda16a7b00b4bcc8 /src/class | |
| parent | 3e6d911ce9c01729af3b5d3093ccba250dfdfe2e (diff) | |
more endian convert
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/msc/msc_host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/msc/msc_host.c b/src/class/msc/msc_host.c index f4bcb124a..d2a1a00f7 100644 --- a/src/class/msc/msc_host.c +++ b/src/class/msc/msc_host.c @@ -233,7 +233,7 @@ tusb_error_t tuh_msc_read10(uint8_t dev_addr, uint8_t lun, void * p_buffer, uin {
.cmd_code = SCSI_CMD_READ_10,
.lba = tu_htonl(lba),
- .block_count = tu_u16_le2be(block_count)
+ .block_count = tu_htons(block_count)
};
memcpy(p_msch->cbw.command, &cmd_read10, p_msch->cbw.cmd_len);
@@ -259,7 +259,7 @@ tusb_error_t tuh_msc_write10(uint8_t dev_addr, uint8_t lun, void const * p_buffe {
.cmd_code = SCSI_CMD_WRITE_10,
.lba = tu_htonl(lba),
- .block_count = tu_u16_le2be(block_count)
+ .block_count = tu_htons(block_count)
};
memcpy(p_msch->cbw.command, &cmd_write10, p_msch->cbw.cmd_len);
|
