AP_BattMonitor: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED

This commit is contained in:
Peter Barker 2021-09-24 13:10:46 +10:00 committed by Peter Barker
parent d9844cc75a
commit f71b4ec568
3 changed files with 4 additions and 4 deletions

View File

@ -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]);

View File

@ -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>

View File

@ -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"