Rover: pass format string through to check_failed

This commit is contained in:
Peter Barker 2019-08-05 11:38:31 +10:00 committed by Peter Barker
parent 6f4167b85b
commit 58adb8d7c4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }