Merge pull request #4088 from martinbudden/bf_huffman_msp

Better check for compression method in fc_msp
This commit is contained in:
Martin Budden 2017-09-07 23:32:45 +01:00 committed by GitHub
commit 28a488b3d2
1 changed files with 5 additions and 0 deletions

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