version lib fix BUILD_URI properly

This commit is contained in:
Daniel Agar
2018-07-30 01:03:00 -04:00
committed by Beat Küng
parent 28610a2b62
commit 56a7c63789
2 changed files with 6 additions and 4 deletions
+5
View File
@@ -58,6 +58,11 @@ enum FIRMWARE_TYPE {
FIRMWARE_TYPE_RELEASE = 255
};
const char *px4_build_uri(void)
{
return STRINGIFY(BUILD_URI);
}
uint32_t version_tag_to_number(const char *tag)
{
uint32_t version_number = 0;
+1 -4
View File
@@ -93,10 +93,7 @@ static inline int px4_board_hw_revision(void)
/**
* get the build URI (used for crash logging)
*/
static inline const char *px4_build_uri(void)
{
return STRINGIFY(BUILD_URI);
}
const char *px4_build_uri(void);
/**
* Convert a version tag string to a number