From 9aa0970eeda860160d3bee38abce52e5f062fb4e Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Fri, 31 Jul 2020 18:21:16 +0530 Subject: [PATCH] AP_HAL: disable protocol drivers for bootloader builds --- libraries/AP_HAL/AP_HAL_Boards.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index c7e08ff8df..77d18423f4 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -216,7 +216,7 @@ #endif #ifndef HAL_MAX_CAN_PROTOCOL_DRIVERS -#if defined(HAL_BUILD_AP_PERIPH) +#if defined(HAL_BUILD_AP_PERIPH) || defined(HAL_BOOTLOADER_BUILD) #define HAL_MAX_CAN_PROTOCOL_DRIVERS 0 #else #define HAL_MAX_CAN_PROTOCOL_DRIVERS HAL_NUM_CAN_IFACES