mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
lib:Use CONFIG_BOARD_ROOT_PATH instead of string constant
This commit is contained in:
parent
d0d9aaa6e9
commit
ea92c7ffcc
@ -19,7 +19,7 @@
|
||||
#if defined(CONFIG_ARCH_BOARD_PX4_SITL)
|
||||
#define TEST_DATA_PATH "./test_data/"
|
||||
#else
|
||||
#define TEST_DATA_PATH "/fs/microsd"
|
||||
#define TEST_DATA_PATH CONFIG_BOARD_ROOT_PATH
|
||||
#endif
|
||||
|
||||
extern "C" __EXPORT int rc_tests_main(int argc, char *argv[]);
|
||||
|
||||
@ -213,7 +213,7 @@ typedef struct ssarc_s dump_s;
|
||||
* Specifier to the xxxx_NUM definei.e %Y is YYYY so add 2 and %s is -2
|
||||
* Also xxxxTIME_FMT need to match in size. See CCASERT in hardfault_log.c
|
||||
*/
|
||||
#define LOG_PATH_BASE "/fs/microsd/"
|
||||
#define LOG_PATH_BASE CONFIG_BOARD_ROOT_PATH "/"
|
||||
#define LOG_PATH_BASE_LEN ((arraySize(LOG_PATH_BASE))-1)
|
||||
|
||||
#define LOG_NAME_FMT "fault_%s.log"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user