diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index 2749f99175..f38eb89f06 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -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 /*