AP_Param: replace HAVE_FILESYSTEM_SUPPORT with backend defines

This commit is contained in:
Peter Barker 2023-05-15 11:44:22 +10:00 committed by Peter Barker
parent e7e0da9a59
commit fd10c5e9e1

View File

@ -1549,7 +1549,7 @@ void AP_Param::reload_defaults_file(bool last_pass)
} }
#endif #endif
#if HAL_OS_POSIX_IO == 1 #if AP_FILESYSTEM_POSIX_ENABLED
/* /*
if the HAL specifies a defaults parameter file then override if the HAL specifies a defaults parameter file then override
defaults using that file defaults using that file
@ -2135,7 +2135,8 @@ bool AP_Param::parse_param_line(char *line, char **vname, float &value, bool &re
} }
#if HAVE_FILESYSTEM_SUPPORT // FIXME: make this AP_FILESYSTEM_FILE_READING_ENABLED
#if AP_FILESYSTEM_FATFS_ENABLED || AP_FILESYSTEM_POSIX_ENABLED
// increments num_defaults for each default found in filename // increments num_defaults for each default found in filename
bool AP_Param::count_defaults_in_file(const char *filename, uint16_t &num_defaults) bool AP_Param::count_defaults_in_file(const char *filename, uint16_t &num_defaults)
@ -2276,7 +2277,7 @@ bool AP_Param::load_defaults_file(const char *filename, bool last_pass)
return true; return true;
} }
#endif // HAVE_FILESYSTEM_SUPPORT #endif // AP_FILESYSTEM_FATFS_ENABLED || AP_FILESYSTEM_POSIX_ENABLED
#if AP_PARAM_MAX_EMBEDDED_PARAM > 0 #if AP_PARAM_MAX_EMBEDDED_PARAM > 0
/* /*