diff --git a/ArduSub/sensors.cpp b/ArduSub/sensors.cpp index 6fdcf88f94..130ffde76c 100644 --- a/ArduSub/sensors.cpp +++ b/ArduSub/sensors.cpp @@ -180,7 +180,7 @@ void Sub::read_battery(void) } // update motors with voltage and current - if (battery.get_type() != AP_BattMonitor::BattMonitor_TYPE_NONE) { + if (battery.get_type() != AP_BattMonitor_Params::BattMonitor_TYPE_NONE) { motors.set_voltage(battery.voltage()); }