Skip to content

Commit

Permalink
AP_Scripting: add and use AP_BATTERY_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Feb 6, 2024
1 parent a8bc776 commit bed976a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bed976a

Please sign in to comment.