mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 14:01:36 +08:00
fixed wrong status indication of sd log command if startup fails
This commit is contained in:
+1
-2
@@ -131,7 +131,6 @@ int sdlog_main(int argc, char *argv[])
|
|||||||
4096,
|
4096,
|
||||||
sdlog_thread_main,
|
sdlog_thread_main,
|
||||||
(argv) ? (const char **)&argv[2] : (const char **)NULL);
|
(argv) ? (const char **)&argv[2] : (const char **)NULL);
|
||||||
thread_running = true;
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -202,7 +201,7 @@ int sdlog_thread_main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
char folder_path[64];
|
char folder_path[64];
|
||||||
if (create_logfolder(folder_path))
|
if (create_logfolder(folder_path))
|
||||||
errx(1, "unable to create logging folder, exiting");
|
errx(1, "unable to create logging folder, exiting.");
|
||||||
|
|
||||||
/* create sensorfile */
|
/* create sensorfile */
|
||||||
int sensorfile = -1;
|
int sensorfile = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user