Plane: Support AP_BattMonitor_Params

This commit is contained in:
Michael du Breuil 2017-10-27 13:06:51 -07:00 committed by Francisco Ferreira
parent 0ddcb0a6fb
commit ff85f5e9bd

View File

@ -127,7 +127,7 @@ void Plane::read_battery(void)
battery.exhausted(g.fs_batt_voltage, g.fs_batt_mah)) {
low_battery_event();
}
if (battery.get_type() != AP_BattMonitor::BattMonitor_TYPE_NONE) {
if (battery.get_type() != AP_BattMonitor_Params::BattMonitor_TYPE_NONE) {
AP_Notify::flags.battery_voltage = battery.voltage();
}