From 987eda9f3884aa43515a9b6a0913fb9d7435e5b2 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 26 Jul 2017 19:56:31 +0900 Subject: [PATCH] AP_Arming: minor variable type change no functional change --- libraries/AP_Arming/AP_Arming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 1deb3a0bd4..558e315a06 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -398,7 +398,7 @@ bool AP_Arming::battery_checks(bool report) return false; } - for (int i = 0; i < _battery.num_instances(); i++) { + for (uint8_t i = 0; i < _battery.num_instances(); i++) { if ((_min_voltage[i] > 0.0f) && (_battery.voltage(i) < _min_voltage[i])) { if (report) { GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_CRITICAL, "PreArm: Battery %d voltage %.1f below minimum %.1f",