mirror of https://github.com/ArduPilot/ardupilot
AP_Arming: minor variable type change
no functional change
This commit is contained in:
parent
ed6e740ad0
commit
1405801595
|
@ -398,7 +398,7 @@ bool AP_Arming::battery_checks(bool report)
|
||||||
return false;
|
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 ((_min_voltage[i] > 0.0f) && (_battery.voltage(i) < _min_voltage[i])) {
|
||||||
if (report) {
|
if (report) {
|
||||||
gcs().send_text(MAV_SEVERITY_CRITICAL, "PreArm: Battery %d voltage %.1f below minimum %.1f",
|
gcs().send_text(MAV_SEVERITY_CRITICAL, "PreArm: Battery %d voltage %.1f below minimum %.1f",
|
||||||
|
|
Loading…
Reference in New Issue