AP_Arming: minor variable type change

no functional change
This commit is contained in:
Randy Mackay 2017-07-26 19:56:31 +09:00 committed by Andrew Tridgell
parent ed6e740ad0
commit 1405801595
1 changed files with 1 additions and 1 deletions

View File

@ -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().send_text(MAV_SEVERITY_CRITICAL, "PreArm: Battery %d voltage %.1f below minimum %.1f",