logger: add git branch name to the log

This commit is contained in:
Beat Küng
2017-07-03 17:46:56 +02:00
committed by Lorenz Meier
parent 91144f502f
commit 18ea5ec1f8
4 changed files with 26 additions and 0 deletions
+6
View File
@@ -1656,6 +1656,12 @@ void Logger::write_version()
write_info("sys_os_name", px4_os_name());
const char *os_version = px4_os_version_string();
const char *git_branch = px4_firmware_git_branch();
if (git_branch && git_branch[0]) {
write_info("ver_sw_branch", git_branch);
}
if (os_version) {
write_info("sys_os_ver", os_version);
}