mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
lib:Use CONFIG_BOARD_ROOT_PATH instead of string constant
This commit is contained in:
committed by
Daniel Agar
parent
d0d9aaa6e9
commit
ea92c7ffcc
@@ -19,7 +19,7 @@
|
|||||||
#if defined(CONFIG_ARCH_BOARD_PX4_SITL)
|
#if defined(CONFIG_ARCH_BOARD_PX4_SITL)
|
||||||
#define TEST_DATA_PATH "./test_data/"
|
#define TEST_DATA_PATH "./test_data/"
|
||||||
#else
|
#else
|
||||||
#define TEST_DATA_PATH "/fs/microsd"
|
#define TEST_DATA_PATH CONFIG_BOARD_ROOT_PATH
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern "C" __EXPORT int rc_tests_main(int argc, char *argv[]);
|
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
|
* 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
|
* 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_PATH_BASE_LEN ((arraySize(LOG_PATH_BASE))-1)
|
||||||
|
|
||||||
#define LOG_NAME_FMT "fault_%s.log"
|
#define LOG_NAME_FMT "fault_%s.log"
|
||||||
|
|||||||
Reference in New Issue
Block a user