From 8c49372e7a18382785fac6c6b6071bd06a47fb81 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 4 Sep 2016 18:47:41 +0200 Subject: [PATCH] Better error reporting for sdlog2 --- src/modules/sdlog2/sdlog2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 6a82e84011..bff8155a92 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1126,7 +1126,6 @@ int sdlog2_thread_main(int argc, char *argv[]) } if (check_free_space() != OK) { - PX4_WARN("ERR: MicroSD almost full"); return 1; } @@ -2359,7 +2358,7 @@ int check_free_space() /* use statfs to determine the number of blocks left */ FAR struct statfs statfs_buf; if (statfs(mountpoint, &statfs_buf) != OK) { - PX4_WARN("ERR: statfs"); + mavlink_and_console_log_critical(&mavlink_log_pub, "[blackbox] no microSD card, disabling logging"); return PX4_ERROR; }