mavlink log: Macro added to log to mavlink and console in one go

This commit is contained in:
Lorenz Meier
2015-01-04 15:33:32 +01:00
parent abc8bf2e84
commit 0142002737
2 changed files with 35 additions and 4 deletions
+1 -2
View File
@@ -396,8 +396,7 @@ int create_log_dir()
}
/* print logging path, important to find log file later */
warnx("log dir: %s", log_dir);
mavlink_log_info(mavlink_fd, "[sdlog2] log dir: %s", log_dir);
mavlink_and_console_log_info(mavlink_fd, "[sdlog2] log dir: %s", log_dir);
return 0;
}