GCS_MAVLINK: fixed build of boards with APJ_BOARD_ID>32768

this impacts modalai_fc_v1
This commit is contained in:
Andrew Tridgell 2021-11-09 16:18:41 +11:00
parent e929561635
commit 61cc86b911
1 changed files with 1 additions and 1 deletions

View File

@ -2353,7 +2353,7 @@ 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 };
uint32_t board_version { uint32_t(APJ_BOARD_ID) << 16 };
#else
uint32_t board_version = 0;
#endif