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);