Copter: pass format string through to check_failed

This commit is contained in:
Peter Barker 2019-08-05 11:38:38 +10:00 committed by Peter Barker
parent 95b8c12454
commit 6f4167b85b

View File

@ -255,7 +255,7 @@ bool AP_Arming_Copter::pilot_throttle_checks(bool display_failure)
#else
const char *failmsg = "Throttle below Failsafe";
#endif
check_failed(ARMING_CHECK_RC, display_failure, failmsg);
check_failed(ARMING_CHECK_RC, display_failure, "%s", failmsg);
return false;
}
}