From daa210729c1e81c4bac52816e63c83e320d51949 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 14 Apr 2016 21:53:07 +1000 Subject: [PATCH] AP_HAL_PX4: correct systemid output for PX4v4 --- libraries/AP_HAL_PX4/Util.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_PX4/Util.cpp b/libraries/AP_HAL_PX4/Util.cpp index fd16a34e61..7a132db5e8 100644 --- a/libraries/AP_HAL_PX4/Util.cpp +++ b/libraries/AP_HAL_PX4/Util.cpp @@ -108,8 +108,12 @@ bool PX4Util::get_system_id(char buf[40]) get_board_serial(serialid); #ifdef CONFIG_ARCH_BOARD_PX4FMU_V1 const char *board_type = "PX4v1"; -#else +#elif CONFIG_ARCH_BOARD_PX4FMU_V2 const char *board_type = "PX4v2"; +#elif CONFIG_ARCH_BOARD_PX4FMU_V4 + const char *board_type = "PX4v4"; +#else + const char *board_type = "PX4v?"; #endif // this format is chosen to match the human_readable_serial() // function in auth.c