From c8d888cdc106b2e0a060e2c3fa549bf2bd6aad84 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 5 May 2016 16:15:44 +0200 Subject: [PATCH] sdlog2: fix wrong if (facepalm!) --- src/modules/sdlog2/sdlog2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index f71edbb874..8dd69a1726 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1513,7 +1513,7 @@ int sdlog2_thread_main(int argc, char *argv[]) } /* --- EKF2 REPLAY --- */ - if (log_type == LOG_TYPE_ALL || LOG_TYPE_REPLAY_ONLY) { + if (log_type == LOG_TYPE_ALL || log_type == LOG_TYPE_REPLAY_ONLY) { if (log_type == LOG_TYPE_ALL) { // When logging everything we are polling for sensor_combined, so @@ -1596,7 +1596,7 @@ int sdlog2_thread_main(int argc, char *argv[]) } } - if (log_type == LOG_TYPE_ALL || LOG_TYPE_NORMAL) { + if (log_type == LOG_TYPE_ALL || log_type == LOG_TYPE_NORMAL) { // We poll on sensor combined, so we know it has updated just now // but we need to copy it again because we are re-using the buffer.