mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-25 14:50:35 +08:00
version: remove FW_GIT & FW_BUILD_URI, use the correct methods instead
This is cleanup after rebasing
This commit is contained in:
@@ -619,7 +619,7 @@ void UavcanNode::fill_node_info()
|
||||
/* software version */
|
||||
uavcan::protocol::SoftwareVersion swver;
|
||||
|
||||
// Extracting the first 8 hex digits of GIT_VERSION and converting them to int
|
||||
// Extracting the first 8 hex digits of the git hash and converting them to int
|
||||
char fw_git_short[9] = {};
|
||||
std::memmove(fw_git_short, px4_firmware_version_string(), 8);
|
||||
assert(fw_git_short[8] == '\0');
|
||||
|
||||
@@ -211,9 +211,9 @@ void UavcanEsc::fill_node_info()
|
||||
/* software version */
|
||||
uavcan::protocol::SoftwareVersion swver;
|
||||
|
||||
// Extracting the first 8 hex digits of FW_GIT and converting them to int
|
||||
// Extracting the first 8 hex digits of the git hash and converting them to int
|
||||
char fw_git_short[9] = {};
|
||||
std::memmove(fw_git_short, FW_GIT, 8);
|
||||
std::memmove(fw_git_short, px4_firmware_version_string(), 8);
|
||||
assert(fw_git_short[8] == '\0');
|
||||
char *end = nullptr;
|
||||
swver.vcs_commit = std::strtol(fw_git_short, &end, 16);
|
||||
|
||||
@@ -238,9 +238,9 @@ void UavcanNode::fill_node_info()
|
||||
/* software version */
|
||||
uavcan::protocol::SoftwareVersion swver;
|
||||
|
||||
// Extracting the first 8 hex digits of FW_GIT and converting them to int
|
||||
// Extracting the first 8 hex digits of the git hash and converting them to int
|
||||
char fw_git_short[9] = {};
|
||||
std::memmove(fw_git_short, FW_GIT, 8);
|
||||
std::memmove(fw_git_short, px4_firmware_version_string(), 8);
|
||||
assert(fw_git_short[8] == '\0');
|
||||
char *end = nullptr;
|
||||
swver.vcs_commit = std::strtol(fw_git_short, &end, 16);
|
||||
|
||||
Reference in New Issue
Block a user