From 8575d8cd49a525bf67e7a11eeb3dd0261e20c77b Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 16 Aug 2012 17:20:41 +0200 Subject: [PATCH] Fixed arming bug --- apps/commander/commander.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/commander/commander.c b/apps/commander/commander.c index 34dfc22b51..e290c2140c 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -1113,7 +1113,7 @@ int commander_main(int argc, char *argv[]) current_status.preflight_gyro_calibration == false && current_status.preflight_mag_calibration == false) { /* All ok, no calibration going on, go to standby */ - do_state_update(stat_pub, ¤t_status, SYSTEM_STATE_STANDBY, mavlink_fd); + do_state_update(stat_pub, ¤t_status, mavlink_fd, SYSTEM_STATE_STANDBY); } /* publish at least with 1 Hz */