mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-15 14:40:35 +08:00
board_name.c: remove the file and HW_ARCH macro, use px4_board_name() instead
boards define BOARD_NAME, so board_name() is not necessary. HW_ARCH was just a wrapper around board_name(). This patch simplifies to having only one common method px4_board_name().
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
#include <px4_sem.h>
|
||||
#include <systemlib/mavlink_log.h>
|
||||
#include <replay/definitions.hpp>
|
||||
#include <version/version.h>
|
||||
|
||||
#ifdef __PX4_DARWIN
|
||||
#include <sys/param.h>
|
||||
@@ -1361,7 +1362,7 @@ void Logger::write_header()
|
||||
void Logger::write_version()
|
||||
{
|
||||
write_info("ver_sw", PX4_GIT_VERSION_STR);
|
||||
write_info("ver_hw", HW_ARCH);
|
||||
write_info("ver_hw", px4_board_name());
|
||||
write_info("sys_name", "PX4");
|
||||
int32_t utc_offset = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user