mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
fix msc block count get
This commit is contained in:
parent
a6a06bca69
commit
5f1bec943b
@ -106,7 +106,7 @@ static inline uint16_t rdwr10_get_blockcount(uint8_t const command[])
|
||||
uint16_t block_count;
|
||||
memcpy(&block_count, &p_rdwr10->block_count, 2);
|
||||
|
||||
return __be2n(block_count);
|
||||
return __be2n_16(block_count);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user