mirror of https://github.com/ArduPilot/ardupilot
AP_BattMonitor: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
This commit is contained in:
parent
d9844cc75a
commit
f71b4ec568
|
@ -282,14 +282,14 @@ AP_BattMonitor::init()
|
|||
drivers[instance] = new AP_BattMonitor_FuelLevel_PWM(*this, state[instance], _params[instance]);
|
||||
break;
|
||||
#endif // HAL_BATTMON_FUEL_ENABLE
|
||||
#if GENERATOR_ENABLED
|
||||
#if HAL_GENERATOR_ENABLED
|
||||
case Type::GENERATOR_ELEC:
|
||||
drivers[instance] = new AP_BattMonitor_Generator_Elec(*this, state[instance], _params[instance]);
|
||||
break;
|
||||
case Type::GENERATOR_FUEL:
|
||||
drivers[instance] = new AP_BattMonitor_Generator_FuelLevel(*this, state[instance], _params[instance]);
|
||||
break;
|
||||
#endif // GENERATOR_ENABLED
|
||||
#endif // HAL_GENERATOR_ENABLED
|
||||
#if HAL_MPPT_PACKETDIGITAL_CAN_ENABLE
|
||||
case Type::MPPT_PacketDigital:
|
||||
drivers[instance] = new AP_BattMonitor_MPPT_PacketDigital(*this, state[instance], _params[instance]);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include "AP_BattMonitor_Generator.h"
|
||||
|
||||
#if GENERATOR_ENABLED
|
||||
#if HAL_GENERATOR_ENABLED
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <AP_Generator/AP_Generator.h>
|
||||
|
||||
#if GENERATOR_ENABLED
|
||||
#if HAL_GENERATOR_ENABLED
|
||||
|
||||
#include "AP_BattMonitor.h"
|
||||
#include "AP_BattMonitor_Backend.h"
|
||||
|
|
Loading…
Reference in New Issue