process Sdo requests even with error_flag set.
authorFlorian Pose <fp@igh-essen.com>
Fri, 06 Jun 2008 15:16:37 +0000
changeset 969 e259df107c92
parent 968 b0e894257743
child 970 b7cbff36bc01
process Sdo requests even with error_flag set.
master/fsm_master.c
--- a/master/fsm_master.c	Fri Jun 06 15:13:25 2008 +0000
+++ b/master/fsm_master.c	Fri Jun 06 15:16:37 2008 +0000
@@ -401,9 +401,8 @@
         up(&master->sdo_sem);
 
         slave = request->slave;
-        if (slave->current_state == EC_SLAVE_STATE_INIT ||
-                slave->error_flag) {
-            EC_ERR("Discarding Sdo request, slave %u not ready.\n",
+        if (slave->current_state == EC_SLAVE_STATE_INIT) {
+            EC_ERR("Discarding Sdo request, slave %u is in INIT.\n",
                     slave->ring_position);
             request->req.state = EC_REQUEST_FAILURE;
             wake_up(&master->sdo_queue);