From 48ec224b8c49d29111e5bc5f62bdd562aa9b9c40 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 10 Mar 2023 14:00:01 +1100 Subject: [PATCH] AP_HAL_ChibiOS: specify AP_BATTERY_ESC_ENABLED for periph in chibios_hwdef.py --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 4 ++++ 1 file changed, 4 insertions(+) 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.