aboutsummaryrefslogtreecommitdiff
path: root/src/modules/sdlog2
diff options
context:
space:
mode:
authorBan Siesta <bansiesta@gmail.com>2015-01-04 13:48:11 +0000
committerBan Siesta <bansiesta@gmail.com>2015-01-04 13:48:11 +0000
commit3b418a5a595f0e48c4365217815372d9b278f64c (patch)
tree52094e947dad3c1953b02916d283b2b7039af097 /src/modules/sdlog2
parent460402e07ac84315a32cc42dae295c88a6297924 (diff)
downloadpx4-firmware-3b418a5a595f0e48c4365217815372d9b278f64c.tar.gz
px4-firmware-3b418a5a595f0e48c4365217815372d9b278f64c.tar.bz2
px4-firmware-3b418a5a595f0e48c4365217815372d9b278f64c.zip
sdlog2: concatenate path strings
Diffstat (limited to 'src/modules/sdlog2')
-rw-r--r--src/modules/sdlog2/sdlog2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c
index da181dad5..3b3b5c7a5 100644
--- a/src/modules/sdlog2/sdlog2.c
+++ b/src/modules/sdlog2/sdlog2.c
@@ -160,8 +160,9 @@ static const int MIN_BYTES_TO_WRITE = 512;
static bool _extended_logging = false;
-static const char *mountpoint = "/fs/microsd";
-static const char *log_root = "/fs/microsd/log";
+#define MOUNTPOINT "/fs/microsd"
+static const char *mountpoint = MOUNTPOINT;
+static const char *log_root = MOUNTPOINT "/log";
static int mavlink_fd = -1;
struct logbuffer_s lb;