Skip to content

Commit

Permalink
Version: Add MAVLink git hash to available versions
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Jun 4, 2017
1 parent ea22350 commit 990ae93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/version/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ uint64_t px4_firmware_version_binary(void)
return PX4_GIT_VERSION_BINARY;
}

uint64_t px4_mavlink_lib_version_binary(void)
{
return MAVLINK_LIB_GIT_VERSION_BINARY;
}

uint64_t px4_os_version_binary(void)
{
//TODO: get NuttX version via git tag
Expand Down
5 changes: 5 additions & 0 deletions src/lib/version/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ __EXPORT const char *px4_firmware_version_string(void);
*/
__EXPORT uint64_t px4_firmware_version_binary(void);

/**
* MAVLink lib version in binary form (first part of the git tag)
*/
__EXPORT uint64_t px4_mavlink_lib_version_binary(void);

/**
* Operating system version in binary form (first part of the git tag)
* @return this is not available on all OSes and can return 0
Expand Down

0 comments on commit 990ae93

Please sign in to comment.