version: remove FW_GIT & FW_BUILD_URI, use the correct methods instead

This is cleanup after rebasing
This commit is contained in:
Beat Küng
2016-12-21 11:35:10 +01:00
committed by Lorenz Meier
parent 3d0f1e4a4f
commit 5e9bdff205
6 changed files with 16 additions and 10 deletions
+8 -2
View File
@@ -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)