Unset idle flag while processing FoE requests.
authorFlorian Pose <fp@igh-essen.com>
Tue, 05 May 2009 09:45:31 +0000
changeset 1444 45d64e8e3675
parent 1443 731422684dfd
child 1445 45c5f5560274
Unset idle flag while processing FoE requests.
master/fsm_master.c
--- a/master/fsm_master.c	Tue May 05 09:43:32 2009 +0000
+++ b/master/fsm_master.c	Tue May 05 09:45:31 2009 +0000
@@ -522,6 +522,7 @@
         fsm->foe_request = &request->req;
         fsm->slave = slave;
         fsm->state = ec_fsm_master_state_foe_request;
+        fsm->idle = 0;
         ec_fsm_foe_transfer(&fsm->fsm_foe, slave, &request->req);
         ec_fsm_foe_exec(&fsm->fsm_foe);
         return 1;
@@ -976,6 +977,8 @@
     if (ec_fsm_foe_exec(&fsm->fsm_foe))
         return;
 
+    fsm->idle = 1;
+
     if (!ec_fsm_foe_success(&fsm->fsm_foe)) {
         EC_ERR("Failed to handle FoE request to slave %u.\n",
                 slave->ring_position);