Force reconfiguration after attachment.
authorFlorian Pose <fp@igh-essen.com>
Thu, 24 Jul 2008 15:06:47 +0000
changeset 1145 133cf4631fcc
parent 1144 7dbfdd61812c
child 1146 f18d124d7fbc
Force reconfiguration after attachment.
master/slave_config.c
--- a/master/slave_config.c	Thu Jul 24 14:56:57 2008 +0000
+++ b/master/slave_config.c	Thu Jul 24 15:06:47 2008 +0000
@@ -192,6 +192,7 @@
                     sc->position, slave->ring_position);
         return -2;
     }
+
     if (slave->sii.vendor_id != sc->vendor_id
             || slave->sii.product_code != sc->product_code) {
         if (sc->master->debug_level)
@@ -206,6 +207,11 @@
 	// attach slave
 	slave->config = sc;
 	sc->slave = slave;
+
+    // force reconfiguration, because the master could have had no possibility
+    // for a reconfiguration, between two operation phases.
+    slave->force_config = 1;
+
     ec_slave_request_state(slave, EC_SLAVE_STATE_OP);
 
     if (sc->master->debug_level)