summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-06-21 12:20:21 +0700
committerhathach <[email protected]>2018-06-21 12:20:21 +0700
commit5f1bec943b2a227d6b6f2188644c7641828787e7 (patch)
treef1f11a3b79045c58b56e7d9c4c62f8798f96a661 /src/class
parenta6a06bca69983ab74b81ae08c1aa70940c489eb8 (diff)
fix msc block count get
Diffstat (limited to 'src/class')
-rw-r--r--src/class/msc/msc_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c
index 1894720d6..c10fd8a69 100644
--- a/src/class/msc/msc_device.c
+++ b/src/class/msc/msc_device.c
@@ -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);
}