mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Param: replace HAVE_FILESYSTEM_SUPPORT with backend defines
This commit is contained in:
parent
e7e0da9a59
commit
fd10c5e9e1
@ -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
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user