From ea3ce8de85ca8167ed66b1b5894f25c695c96796 Mon Sep 17 00:00:00 2001 From: James Goppert Date: Sun, 13 Jan 2013 18:22:35 -0500 Subject: [PATCH] Reboot fix. --- apps/commander/state_machine_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/commander/state_machine_helper.c b/apps/commander/state_machine_helper.c index 99e0f2d646..bea388a101 100644 --- a/apps/commander/state_machine_helper.c +++ b/apps/commander/state_machine_helper.c @@ -134,7 +134,8 @@ int do_state_update(int status_pub, struct vehicle_status_s *current_status, con case SYSTEM_STATE_REBOOT: if (current_status->state_machine == SYSTEM_STATE_STANDBY - || current_status->state_machine == SYSTEM_STATE_PREFLIGHT) { + || current_status->state_machine == SYSTEM_STATE_PREFLIGHT + || current_status->flag_hil_enabled) { invalid_state = false; /* set system flags according to state */ current_status->flag_system_armed = false;