From 77f0e106f60af4eb88746b64f89c1106a0caefee Mon Sep 17 00:00:00 2001 From: mikeller Date: Thu, 17 Jan 2019 00:02:13 +1300 Subject: [PATCH] Removed unnecessary cast. --- src/main/interface/msp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/interface/msp.c b/src/main/interface/msp.c index 66833fed7..c85441095 100644 --- a/src/main/interface/msp.c +++ b/src/main/interface/msp.c @@ -387,7 +387,7 @@ static void serializeDataflashReadReply(sbuf_t *dst, uint32_t address, const uin if (!useLegacyFormat) { // update the 'read length' with the actual amount read from flash. - *readLenPtr = (uint16_t)bytesRead; + *readLenPtr = bytesRead; } sbufAdvance(dst, bytesRead);