AP_ROMFS: fixed return size for uncompressed ROMFS

This commit is contained in:
Andrew Tridgell 2019-10-25 20:10:31 +11:00
parent 4593697634
commit 7fb44d1164
1 changed files with 1 additions and 0 deletions

View File

@ -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