diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index ad9703a1d9..cfb2956101 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -2897,6 +2897,10 @@ def add_apperiph_defaults(f): #define AP_AIRSPEED_AUTOCAL_ENABLE 0 #endif +#ifndef AP_STATS_ENABLED +#define AP_STATS_ENABLED 0 +#endif + #ifndef AP_VOLZ_ENABLED #define AP_VOLZ_ENABLED 0 #endif