lib:Use CONFIG_BOARD_ROOT_PATH instead of string constant

This commit is contained in:
David Sidrane 2024-04-11 03:30:57 -07:00 committed by Daniel Agar
parent d0d9aaa6e9
commit ea92c7ffcc
2 changed files with 2 additions and 2 deletions

View File

@ -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[]);

View File

@ -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"