From 5f1bec943b2a227d6b6f2188644c7641828787e7 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 21 Jun 2018 12:20:21 +0700 Subject: [PATCH] fix msc block count get --- src/class/msc/msc_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c index 1894720d..c10fd8a6 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); }