mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_ROMFS: fixed return size for uncompressed ROMFS
This commit is contained in:
parent
4593697634
commit
7fb44d1164
@ -54,6 +54,7 @@ const uint8_t *AP_ROMFS::find_decompress(const char *name, uint32_t &size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAL_ROMFS_UNCOMPRESSED
|
#ifdef HAL_ROMFS_UNCOMPRESSED
|
||||||
|
size = compressed_size;
|
||||||
return compressed_data;
|
return compressed_data;
|
||||||
#else
|
#else
|
||||||
// last 4 bytes of gzip file are length of decompressed data
|
// last 4 bytes of gzip file are length of decompressed data
|
||||||
|
Loading…
Reference in New Issue
Block a user