Merged
authorMartin Troxler <ch1010277@ch10lt194>
Tue, 19 Jan 2010 19:33:47 +0100
changeset 1777 a93fc03eeb06
parent 1776 65786b1d3043 (diff)
parent 1774 a9143f82c7c5 (current diff)
child 1778 94dbb44884ec
child 1799 f228415225b7
Merged
documentation/images/architecture.fig
--- a/master/fsm_slave_scan.c	Tue Jan 19 17:57:46 2010 +0100
+++ b/master/fsm_slave_scan.c	Tue Jan 19 19:33:47 2010 +0100
@@ -770,19 +770,14 @@
     }
 
     if (datagram->working_counter != 1) {
-        fsm->slave->error_flag = 1;
-        fsm->state = ec_fsm_slave_scan_state_error;
-        EC_ERR("Failed to read reg alias of slave %u: ",
-               fsm->slave->ring_position);
-        ec_datagram_print_wc_error(datagram);
-        return;
-    }
-
-    slave->sii.alias = EC_READ_U16(datagram->data);
-    if (slave->master->debug_level)
-         EC_DBG("Alias of slave %u is %u.\n",
-                 slave->ring_position,slave->sii.alias);
-
+        EC_WARN("Failed to read reg alias of slave %u.\n",
+        fsm->slave->ring_position);
+    } else {
+        slave->sii.alias = EC_READ_U16(datagram->data);
+        if (slave->master->debug_level)
+            EC_DBG("Alias of slave %u is %u.\n",
+        slave->ring_position,slave->sii.alias);
+    }
     if (slave->sii.mailbox_protocols & EC_MBOX_COE) {
         ec_fsm_slave_scan_enter_preop(fsm);
     } else {