From 5f4bd10477eb0392db42fc6fe16ee88285802f93 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Jan 2016 09:09:09 +1100 Subject: [PATCH] AP_HAL: added get_custom_defaults_file() to Util --- libraries/AP_HAL/AP_HAL_Boards.h | 4 ++++ libraries/AP_HAL/Util.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index 7a3988743f..8064742bc6 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -417,4 +417,8 @@ #define HAL_OS_POSIX_IO 0 #endif +#ifndef HAL_PARAM_DEFAULTS_PATH +#define HAL_PARAM_DEFAULTS_PATH NULL +#endif + #endif // __AP_HAL_BOARDS_H__ diff --git a/libraries/AP_HAL/Util.h b/libraries/AP_HAL/Util.h index fd1292e615..30c35a6d54 100644 --- a/libraries/AP_HAL/Util.h +++ b/libraries/AP_HAL/Util.h @@ -23,6 +23,11 @@ public: virtual const char* get_custom_log_directory() { return NULL; } virtual const char* get_custom_terrain_directory() const { return NULL; } + // get path to custom defaults file for AP_Param + virtual const char* get_custom_defaults_file() const { + return HAL_PARAM_DEFAULTS_PATH; + } + // run a debug shall on the given stream if possible. This is used // to support dropping into a debug shell to run firmware upgrade // commands