mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Added GIT version which recompiles on each build
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include <systemlib/mixer/mixer.h>
|
||||
#include <systemlib/board_serial.h>
|
||||
#include <systemlib/scheduling_priorities.h>
|
||||
#include <systemlib/git_version.h>
|
||||
#include <version/version.h>
|
||||
#include <arch/board/board.h>
|
||||
#include <arch/chip/chip.h>
|
||||
@@ -212,7 +213,7 @@ void UavcanNode::fill_node_info()
|
||||
|
||||
// Extracting the first 8 hex digits of GIT_VERSION and converting them to int
|
||||
char fw_git_short[9] = {};
|
||||
std::memmove(fw_git_short, GIT_VERSION, 8);
|
||||
std::memmove(fw_git_short, px4_git_version, 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