diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index 6bc0e9d551..9d9dd5c67c 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -265,6 +265,10 @@ #define HAL_INS_ENABLED (!defined(HAL_BUILD_AP_PERIPH)) #endif +#ifndef AP_STATS_ENABLED +#define AP_STATS_ENABLED (!defined(HAL_BUILD_AP_PERIPH)) +#endif + #ifndef HAL_WITH_MCU_MONITORING #define HAL_WITH_MCU_MONITORING 0 #endif