Skip to content
Snippets Groups Projects
Commit f0f88a36 authored by Beat Küng's avatar Beat Küng
Browse files

ver command: show the git branch name for 'ver all'

parent a934d6e3
No related branches found
No related tags found
No related merge requests found
......@@ -173,6 +173,13 @@ int ver_main(int argc, char *argv[])
printf("FW version: %u.%u.%u %x (%u)\n", major, minor, patch, type, fwver);
}
if (show_all) {
const char *git_branch = px4_firmware_git_branch();
if (git_branch && git_branch[0]) {
printf("FW git-branch: %s\n", git_branch);
}
}
fwver = px4_os_version();
major = (fwver >> (8 * 3)) & 0xFF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment