From 5cdb8a4c2ad53f285718439f7b5f91f35ce578f9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 4 Dec 2014 15:51:51 +0900 Subject: [PATCH] Plane: use battery.has_current --- ArduPlane/GCS_Mavlink.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index 528cbcb652..bd954673d1 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -254,7 +254,7 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan) int16_t battery_current = -1; int8_t battery_remaining = -1; - if (battery.monitoring() == AP_BATT_MONITOR_VOLTAGE_AND_CURRENT) { + if (battery.has_current()) { battery_remaining = battery.capacity_remaining_pct(); battery_current = battery.current_amps() * 100; }