diff --git a/libraries/AP_ROMFS/AP_ROMFS.cpp b/libraries/AP_ROMFS/AP_ROMFS.cpp index 73d7f37155..7bfc6b7466 100644 --- a/libraries/AP_ROMFS/AP_ROMFS.cpp +++ b/libraries/AP_ROMFS/AP_ROMFS.cpp @@ -54,6 +54,7 @@ const uint8_t *AP_ROMFS::find_decompress(const char *name, uint32_t &size) } #ifdef HAL_ROMFS_UNCOMPRESSED + size = compressed_size; return compressed_data; #else // last 4 bytes of gzip file are length of decompressed data