1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Better check for compression method in fc_msp

This commit is contained in:
Martin Budden 2017-09-07 21:43:40 +01:00
parent d4fb9d5bdc
commit b382c01cc0

View file

@ -310,7 +310,12 @@ static void serializeDataflashReadReply(sbuf_t *dst, uint32_t address, const uin
sbufWriteU32(dst, address);
// legacy format does not support compression
#ifdef USE_HUFFMAN
const uint8_t compressionMethod = (!allowCompression || useLegacyFormat) ? NO_COMPRESSION : HUFFMAN;
#else
const uint8_t compressionMethod = NO_COMPRESSION;
UNUSED(allowCompression);
#endif
if (compressionMethod == NO_COMPRESSION) {
if (!useLegacyFormat) {