AP_HAL_PX4: correct systemid output for PX4v4

This commit is contained in:
Peter Barker 2016-04-14 21:53:07 +10:00 committed by Tom Pittenger
parent ff57884eca
commit daa210729c
1 changed files with 5 additions and 1 deletions

View File

@ -108,8 +108,12 @@ bool PX4Util::get_system_id(char buf[40])
get_board_serial(serialid); get_board_serial(serialid);
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1 #ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
const char *board_type = "PX4v1"; const char *board_type = "PX4v1";
#else #elif CONFIG_ARCH_BOARD_PX4FMU_V2
const char *board_type = "PX4v2"; const char *board_type = "PX4v2";
#elif CONFIG_ARCH_BOARD_PX4FMU_V4
const char *board_type = "PX4v4";
#else
const char *board_type = "PX4v?";
#endif #endif
// this format is chosen to match the human_readable_serial() // this format is chosen to match the human_readable_serial()
// function in auth.c // function in auth.c