mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 10:43:34 +08:00
platforms/common:Use CONFIG_BOARD_ROOT_PATH instead of string constant
This commit is contained in:
committed by
Daniel Agar
parent
a99cc0a20b
commit
3fa9cda505
@@ -239,7 +239,7 @@
|
||||
# else
|
||||
/* Use PX4IO FW search paths defaults based on version */
|
||||
# if BOARD_USES_PX4IO_VERSION == 2
|
||||
# define PX4IO_FW_SEARCH_PATHS {"/etc/extras/px4_io-v2_default.bin","/fs/microsd/px4_io-v2_default.bin", "/fs/microsd/px4io2.bin", nullptr }
|
||||
# define PX4IO_FW_SEARCH_PATHS {"/etc/extras/px4_io-v2_default.bin",CONFIG_BOARD_ROOT_PATH "/px4_io-v2_default.bin", CONFIG_BOARD_ROOT_PATH "/px4io2.bin", nullptr }
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@@ -64,7 +64,7 @@ static inline constexpr bool PX4_ISFINITE(double x) { return __builtin_isfinite(
|
||||
****************************************************************************/
|
||||
|
||||
#define PX4_ROOTFSDIR ""
|
||||
#define PX4_STORAGEDIR PX4_ROOTFSDIR "/fs/microsd"
|
||||
#define PX4_STORAGEDIR PX4_ROOTFSDIR CONFIG_BOARD_ROOT_PATH
|
||||
#define _PX4_IOC(x,y) _IOC(x,y)
|
||||
|
||||
// mode for open with O_CREAT
|
||||
|
||||
Reference in New Issue
Block a user