logger: add git branch name to the log

This commit is contained in:
Beat Küng
2017-07-07 17:06:48 +02:00
committed by Lorenz Meier
parent 91144f502f
commit 18ea5ec1f8
4 changed files with 26 additions and 0 deletions
+5
View File
@@ -156,6 +156,11 @@ uint32_t px4_firmware_version(void)
return version_tag_to_number(PX4_GIT_TAG_STR);
}
const char *px4_firmware_git_branch(void)
{
return PX4_GIT_BRANCH_NAME;
}
uint32_t px4_board_version(void)
{
#if defined(__PX4_NUTTX)
+6
View File
@@ -118,6 +118,12 @@ __EXPORT const char *px4_toolchain_version(void);
*/
__EXPORT const char *px4_firmware_version_string(void);
/**
* get the git branch name (can be empty, for example if HEAD points to a tag)
*/
__EXPORT const char *px4_firmware_git_branch(void);
/**
* Firmware version in binary form (first part of the git tag)
*/