diff --git a/Tools/AP_Periph/wscript b/Tools/AP_Periph/wscript index ecb1a88026..28fc92e11c 100644 --- a/Tools/AP_Periph/wscript +++ b/Tools/AP_Periph/wscript @@ -62,6 +62,7 @@ def build(bld): 'AC_PID', 'AP_BLHeli', 'AP_ESC_Telem', + 'AP_Stats' ] bld.ap_stlib( name= 'AP_Periph_libs', diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index cc6fb375ca..57e662aac3 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -2782,6 +2782,10 @@ def add_apperiph_defaults(f): #define AP_ROBOTISSERVO_ENABLED 0 #endif +#ifndef AP_STATS_ENABLED +#define AP_STATS_ENABLED 0 +#endif + /* * GPS Backends - we selectively turn backends on. * Note also that f103-GPS explicitly disables some of these backends.