mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 23:55:24 +08:00
version lib fix BUILD_URI properly
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user