mirror of https://github.com/ArduPilot/ardupilot
AP_Arming: resolve compiler warning
This commit is contained in:
parent
002223204b
commit
e702ca7202
|
@ -531,7 +531,7 @@ bool AP_Arming::board_voltage_checks(bool report)
|
|||
const float bus_voltage = hal.analogin->board_voltage();
|
||||
const float vbus_min = AP_BoardConfig::get_minimum_board_voltage();
|
||||
if(((bus_voltage < vbus_min) || (bus_voltage > AP_ARMING_BOARD_VOLTAGE_MAX))) {
|
||||
check_failed(ARMING_CHECK_VOLTAGE, report, "Board (%1.1fv) out of range %1.1f-%1.1fv", bus_voltage, vbus_min, AP_ARMING_BOARD_VOLTAGE_MAX);
|
||||
check_failed(ARMING_CHECK_VOLTAGE, report, "Board (%1.1fv) out of range %1.1f-%1.1fv", (double)bus_voltage, (double)vbus_min, (double)AP_ARMING_BOARD_VOLTAGE_MAX);
|
||||
return false;
|
||||
}
|
||||
#endif // HAL_HAVE_BOARD_VOLTAGE
|
||||
|
@ -541,7 +541,7 @@ bool AP_Arming::board_voltage_checks(bool report)
|
|||
if (is_positive(vservo_min)) {
|
||||
const float servo_voltage = hal.analogin->servorail_voltage();
|
||||
if (servo_voltage < vservo_min) {
|
||||
check_failed(ARMING_CHECK_VOLTAGE, report, "Servo voltage to low (%1.2fv < %1.2fv)", servo_voltage, vservo_min);
|
||||
check_failed(ARMING_CHECK_VOLTAGE, report, "Servo voltage to low (%1.2fv < %1.2fv)", (double)servo_voltage, (double)vservo_min);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue