mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 06:10:45 +08:00
Better error reporting for sdlog2
This commit is contained in:
1 parent
cc69dd5665
commit
8c49372e7a
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user