Removed unnecessary cast.

This commit is contained in:
mikeller 2019-01-17 00:02:13 +13:00
parent 2627826cb7
commit 77f0e106f6
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ static void serializeDataflashReadReply(sbuf_t *dst, uint32_t address, const uin
if (!useLegacyFormat) { if (!useLegacyFormat) {
// update the 'read length' with the actual amount read from flash. // update the 'read length' with the actual amount read from flash.
*readLenPtr = (uint16_t)bytesRead; *readLenPtr = bytesRead;
} }
sbufAdvance(dst, bytesRead); sbufAdvance(dst, bytesRead);