mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:31:36 +08:00
Hotfix: Copy a current version of the log conversion tools to each log directory
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -604,6 +604,15 @@ int sdlog2_thread_main(int argc, char *argv[])
|
||||
errx(1, "unable to create logging folder, exiting.");
|
||||
}
|
||||
|
||||
const char *converter_in = "/etc/logging/log_converter.zip";
|
||||
char* converter_out = malloc(200);
|
||||
sprintf(converter_out, "%s/log_converter.zip", folder_path);
|
||||
|
||||
if (file_copy(converter_in, converter_out)) {
|
||||
errx(1, "unable to copy conversion scripts, exiting.");
|
||||
}
|
||||
free(converter_out);
|
||||
|
||||
/* only print logging path, important to find log file later */
|
||||
warnx("logging to directory: %s", folder_path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user