From eb1d04244030ac1942a571e59b16836824f9e5d1 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Wed, 6 Feb 2013 10:27:00 +1100 Subject: [PATCH] set driver_status to HWIdle on HALT in motor Idle state --- site_ansto/motor_dmc2280.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index 702a0efc..bc84db72 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -1972,7 +1972,9 @@ static void DMCState_Idle(pDMC2280Driv self, pEvtEvent event) { } return; case CMD_HALT: - /* we are already halted so just reset run_flag*/ + /* we are already halted so just reset driver_status and run_flag*/ + if (self->driver_status == HWBusy) + self->driver_status = HWIdle; self->run_flag = 0; return; }