mirror of https://github.com/ArduPilot/ardupilot
Rover: pass format string through to check_failed
This commit is contained in:
parent
6f4167b85b
commit
58adb8d7c4
|
@ -172,7 +172,7 @@ bool AP_Arming_Rover::oa_check(bool report)
|
||||||
if (strlen(failure_msg) == 0) {
|
if (strlen(failure_msg) == 0) {
|
||||||
check_failed(ARMING_CHECK_NONE, report, "Check Object Avoidance");
|
check_failed(ARMING_CHECK_NONE, report, "Check Object Avoidance");
|
||||||
} else {
|
} else {
|
||||||
check_failed(ARMING_CHECK_NONE, report, failure_msg);
|
check_failed(ARMING_CHECK_NONE, report, "%s", failure_msg);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue