mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 13:18:52 +08:00
version: remove FW_GIT & FW_BUILD_URI, use the correct methods instead
This is cleanup after rebasing
This commit is contained in:
@@ -47,8 +47,6 @@
|
||||
|
||||
#define FREEZE_STR(s) #s
|
||||
#define STRINGIFY(s) FREEZE_STR(s)
|
||||
#define FW_GIT STRINGIFY(GIT_VERSION)
|
||||
#define FW_BUILD_URI STRINGIFY(BUILD_URI)
|
||||
|
||||
/* The preferred method for publishing a board name is to
|
||||
* define it in board_config.h as BOARD_NAME
|
||||
@@ -81,6 +79,14 @@ static inline const char *px4_board_name(void)
|
||||
return BOARD_NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the build URI (used for crash logging)
|
||||
*/
|
||||
static inline const char *px4_build_uri(void)
|
||||
{
|
||||
return STRINGIFY(BUILD_URI);
|
||||
}
|
||||
|
||||
/**
|
||||
* get the PX4 Firmware version
|
||||
* @return version in the form 0xAABBCCTT (AA: Major, BB: Minor, CC: Patch, TT Type @see FIRMWARE_TYPE)
|
||||
|
||||
Reference in New Issue
Block a user