Browse Source

Copter: pass format string through to check_failed

master
Peter Barker 6 years ago committed by Peter Barker
parent
commit
6f4167b85b
  1. 2
      ArduCopter/AP_Arming.cpp

2
ArduCopter/AP_Arming.cpp

@ -255,7 +255,7 @@ bool AP_Arming_Copter::pilot_throttle_checks(bool display_failure) @@ -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;
}
}

Loading…
Cancel
Save