mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:38:52 +08:00
Fixed log conversion scripts copy operation. Each log comes now with the required conversion tools. Eats up only 10 KB flash for the good cause.
This commit is contained in:
@@ -604,9 +604,9 @@ int sdlog2_thread_main(int argc, char *argv[])
|
|||||||
errx(1, "unable to create logging folder, exiting.");
|
errx(1, "unable to create logging folder, exiting.");
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *converter_in = "/etc/logging/log_converter.zip";
|
const char *converter_in = "/etc/logging/conv.zip";
|
||||||
char* converter_out = malloc(200);
|
char* converter_out = malloc(150);
|
||||||
sprintf(converter_out, "%s/log_converter.zip", folder_path);
|
sprintf(converter_out, "%s/conv.zip", folder_path);
|
||||||
|
|
||||||
if (file_copy(converter_in, converter_out)) {
|
if (file_copy(converter_in, converter_out)) {
|
||||||
errx(1, "unable to copy conversion scripts, exiting.");
|
errx(1, "unable to copy conversion scripts, exiting.");
|
||||||
@@ -1265,7 +1265,7 @@ int file_copy(const char *file_old, const char *file_new)
|
|||||||
fclose(source);
|
fclose(source);
|
||||||
fclose(target);
|
fclose(target);
|
||||||
|
|
||||||
return ret;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void handle_command(struct vehicle_command_s *cmd)
|
void handle_command(struct vehicle_command_s *cmd)
|
||||||
|
|||||||
Reference in New Issue
Block a user