mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
dataman: get path for Snapdragon right
This commit is contained in:
@@ -134,7 +134,11 @@ static px4_sem_t g_sys_state_mutex;
|
|||||||
|
|
||||||
/* The data manager store file handle and file name */
|
/* The data manager store file handle and file name */
|
||||||
static int g_fd = -1, g_task_fd = -1;
|
static int g_fd = -1, g_task_fd = -1;
|
||||||
|
#ifdef __PX4_POSIX_EAGLE
|
||||||
|
static const char *default_device_path = PX4_ROOTFSDIR"/dataman";
|
||||||
|
#else
|
||||||
static const char *default_device_path = PX4_ROOTFSDIR"/fs/microsd/dataman";
|
static const char *default_device_path = PX4_ROOTFSDIR"/fs/microsd/dataman";
|
||||||
|
#endif
|
||||||
static char *k_data_manager_device_path = NULL;
|
static char *k_data_manager_device_path = NULL;
|
||||||
|
|
||||||
/* The data manager work queues */
|
/* The data manager work queues */
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ __END_DECLS
|
|||||||
|
|
||||||
#if defined(__PX4_QURT)
|
#if defined(__PX4_QURT)
|
||||||
#define PX4_ROOTFSDIR
|
#define PX4_ROOTFSDIR
|
||||||
|
#elif defined(__PX4_POSIX_EAGLE)
|
||||||
|
#define PX4_ROOTFSDIR "/home/linaro"
|
||||||
#else
|
#else
|
||||||
#define PX4_ROOTFSDIR "rootfs"
|
#define PX4_ROOTFSDIR "rootfs"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user