From bed976a8fcd49a08929a6993ff0ac17fb2b27555 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 31 Jan 2024 22:07:24 +1100 Subject: [PATCH] AP_Scripting: add and use AP_BATTERY_ENABLED --- libraries/AP_Scripting/generator/description/bindings.desc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 0f4194a9bc..0eee97bf20 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -90,7 +90,7 @@ userdata BattMonitorScript_State field consumed_wh float'skip_check write userdata BattMonitorScript_State field temperature float'skip_check write singleton AP_BattMonitor rename battery -singleton AP_BattMonitor depends (!defined(HAL_BUILD_AP_PERIPH) || defined(HAL_PERIPH_ENABLE_BATTERY)) +singleton AP_BattMonitor depends AP_BATTERY_ENABLED singleton AP_BattMonitor method num_instances uint8_t singleton AP_BattMonitor method healthy boolean uint8_t 0 ud->num_instances() singleton AP_BattMonitor method voltage float uint8_t 0 ud->num_instances()