mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 00:13:59 -04:00
AP_BattMonitor: create and use AP_BATTERY_ENABLED
simply as a way to get HAL_PERIPH_ENABLE_BATTERY out of the main code
This commit is contained in:
parent
77da6cf2b7
commit
85aee2e44a
@ -6,8 +6,12 @@
|
||||
#include <AP_Generator/AP_Generator_config.h>
|
||||
#include <AP_Torqeedo/AP_Torqeedo_config.h>
|
||||
|
||||
#ifndef AP_BATTERY_ENABLED
|
||||
#define AP_BATTERY_ENABLED 1
|
||||
#endif
|
||||
|
||||
#ifndef AP_BATTERY_BACKEND_DEFAULT_ENABLED
|
||||
#define AP_BATTERY_BACKEND_DEFAULT_ENABLED 1
|
||||
#define AP_BATTERY_BACKEND_DEFAULT_ENABLED AP_BATTERY_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef AP_BATTERY_ANALOG_ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user