dataman: get path for Snapdragon right

This commit is contained in:
Julian Oes
2016-05-14 00:06:55 +02:00
committed by Lorenz Meier
parent e186821692
commit 3a8d242576
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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 */
+2
View File
@@ -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