From a25ca0c37d63ea090fda66c199a3b31dd0435d83 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 12 Jan 2018 13:41:50 -0500 Subject: [PATCH] param include px4_config.h for FLASH_BASED_PARAMS - fixes #8585 --- src/modules/systemlib/param/param.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/modules/systemlib/param/param.c b/src/modules/systemlib/param/param.c index 2a1bb5b51d..322b1fc5c3 100644 --- a/src/modules/systemlib/param/param.c +++ b/src/modules/systemlib/param/param.c @@ -42,19 +42,21 @@ */ #include "param.h" +#include "px4_parameters.h" +#include #include #include +#include +#include #include #include #include #include -#include -#include - -#include #include +#include +#include //#define PARAM_NO_ORB ///< if defined, avoid uorb dependency. This disables publication of parameter_update on param change //#define PARAM_NO_AUTOSAVE ///< if defined, do not autosave (avoids LP work queue dependency) @@ -70,9 +72,6 @@ # include "systemlib/flashparams/flashparams.h" #endif -#include "px4_parameters.h" -#include - static const char *param_default_file = PX4_ROOTFSDIR"/eeprom/parameters"; static char *param_user_file = NULL;