diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index b1a51bea37..6713d86eeb 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -2927,6 +2927,10 @@ def add_apperiph_defaults(f): #define AP_STATS_ENABLED 0 #endif +#ifndef AP_BATTERY_ESC_ENABLED +#define AP_BATTERY_ESC_ENABLED 0 +#endif + /* * GPS Backends - we selectively turn backends on. * Note also that f103-GPS explicitly disables some of these backends.