From abc8bf2e84d566b8760896e3c2fc60a871264c71 Mon Sep 17 00:00:00 2001 From: Ban Siesta Date: Sun, 4 Jan 2015 14:07:52 +0000 Subject: sdlog2: adapt threshold --- src/modules/sdlog2/sdlog2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/sdlog2') diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 16ca72891..efd6594b5 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1860,9 +1860,9 @@ int check_free_space() return ERROR; } - /* use a threshold of 4 MiB */ - if (statfs_buf.f_bavail < (int)(4*1024*1024/statfs_buf.f_bsize)) { - warnx("no more space on MicroSD (less than 4 MiB)"); + /* use a threshold of 10 MiB */ + if (statfs_buf.f_bavail < (int)(10*1024*1024/statfs_buf.f_bsize)) { + warnx("no more space on MicroSD (less than 10 MiB)"); mavlink_log_critical(mavlink_fd, "[sdlog2] no more space left on MicroSD"); /* we do not need a flag to remember that we sent this warning because we will exit anyway */ return ERROR; -- cgit v1.2.3