diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index d92f11696d..3a5e2564a3 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -2352,7 +2352,11 @@ void GCS_MAVLINK::send_autopilot_version() const { uint32_t flight_sw_version; uint32_t middleware_sw_version = 0; +#ifdef APJ_BOARD_ID + uint32_t board_version { APJ_BOARD_ID << 16 }; +#else uint32_t board_version = 0; +#endif char flight_custom_version[MAVLINK_MSG_AUTOPILOT_VERSION_FIELD_FLIGHT_CUSTOM_VERSION_LEN]{}; char middleware_custom_version[MAVLINK_MSG_AUTOPILOT_VERSION_FIELD_MIDDLEWARE_CUSTOM_VERSION_LEN]{}; char os_custom_version[MAVLINK_MSG_AUTOPILOT_VERSION_FIELD_OS_CUSTOM_VERSION_LEN]{};