AP_BattMonitor: specify AP_BATTERY_ESC_ENABLED for periph in chibios_hwdef.py

This commit is contained in:
Peter Barker 2023-03-10 14:00:01 +11:00 committed by Peter Barker
parent 5ad5605bc8
commit fab230cd50

View File

@ -23,7 +23,7 @@
#endif
#ifndef AP_BATTERY_ESC_ENABLED
#define AP_BATTERY_ESC_ENABLED AP_BATTERY_BACKEND_DEFAULT_ENABLED && (HAL_WITH_ESC_TELEM && !defined(HAL_BUILD_AP_PERIPH))
#define AP_BATTERY_ESC_ENABLED AP_BATTERY_BACKEND_DEFAULT_ENABLED && HAL_WITH_ESC_TELEM
#endif
#ifndef AP_BATTERY_SMBUS_ENABLED