mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 17:07:35 +08:00
file paths: add PX4_STORAGEDIR & use it where appropriate
This commit is contained in:
@@ -110,7 +110,8 @@ typedef param_t px4_param_t;
|
||||
* NuttX specific defines.
|
||||
****************************************************************************/
|
||||
|
||||
#define PX4_ROOTFSDIR "."
|
||||
#define PX4_ROOTFSDIR ""
|
||||
#define PX4_STORAGEDIR PX4_ROOTFSDIR "/fs/microsd"
|
||||
#define _PX4_IOC(x,y) _IOC(x,y)
|
||||
|
||||
// mode for open with O_CREAT
|
||||
@@ -200,6 +201,8 @@ __END_DECLS
|
||||
# endif
|
||||
|
||||
#endif // __PX4_QURT
|
||||
|
||||
#define PX4_STORAGEDIR PX4_ROOTFSDIR
|
||||
#endif // __PX4_POSIX
|
||||
|
||||
#if defined(__PX4_ROS) || defined(__PX4_POSIX)
|
||||
|
||||
Reference in New Issue
Block a user