AP_Param: save 7k flash for HAL_MINIMIZE_FEATURES boards

This commit is contained in:
Andrew Tridgell 2020-01-31 10:52:45 +11:00
parent 152205fd52
commit aa3642d9de
1 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,11 @@
maximum size of embedded parameter file
*/
#ifndef AP_PARAM_MAX_EMBEDDED_PARAM
#define AP_PARAM_MAX_EMBEDDED_PARAM 8192
#if HAL_MINIMIZE_FEATURES
# define AP_PARAM_MAX_EMBEDDED_PARAM 1024
#else
# define AP_PARAM_MAX_EMBEDDED_PARAM 8192
#endif
#endif
/*