Skip to content

Commit

Permalink
fix msc block count get
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Jun 21, 2018
1 parent a6a06bc commit 5f1bec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class/msc/msc_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 5f1bec9

Please sign in to comment.