From 4e4bc0bee455f79bab555d7b1c607b5603a75a70 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Thu, 2 Jun 2016 15:08:30 -0700 Subject: [PATCH] GCS_MAVLink: use voltage(x) instead of voltage2() --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 4b7fcef124..6706933c15 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1401,7 +1401,7 @@ void GCS_MAVLINK::send_parameter_value_all(const char *param_name, ap_var_type p void GCS_MAVLINK::send_battery2(const AP_BattMonitor &battery) { if (battery.num_instances() > 1) { - mavlink_msg_battery2_send(chan, battery.voltage2()*1000, battery.current_amps(1)); + mavlink_msg_battery2_send(chan, battery.voltage(1)*1000, battery.current_amps(1)); } }