AP_Param: fixed flymaple build

This commit is contained in:
Andrew Tridgell 2016-01-08 10:33:45 +11:00
parent 2aa195e39b
commit b54bb757df

View File

@ -1077,11 +1077,13 @@ bool AP_Param::load_all(void)
struct Param_header phdr;
uint16_t ofs = sizeof(AP_Param::EEPROM_header);
#if HAL_OS_POSIX_IO == 1
/*
if the HAL specifies a defaults parameter file then override
defaults using that file
*/
load_defaults_file(hal.util->get_custom_defaults_file());
#endif
while (ofs < _storage.size()) {
_storage.read_block(&phdr, ofs, sizeof(phdr));