fixed race when calculating DC offsets and start times due to ec_slave_config_attach: removed obsolete request to change slave state to OP.
authorMartin Troxler <ch1010277@ch10lt194>
Fri, 26 Nov 2010 10:33:55 +0100
changeset 2002 26b4ba6edccb
parent 2001 2e05246f3b00
child 2003 a7ff6c28a432
fixed race when calculating DC offsets and start times due to ec_slave_config_attach: removed obsolete request to change slave state to OP.
The request to change to OP is done by ec_master_request_op after activating the master.
master/slave_config.c
--- a/master/slave_config.c	Mon Nov 22 09:53:43 2010 +0100
+++ b/master/slave_config.c	Fri Nov 26 10:33:55 2010 +0100
@@ -244,8 +244,6 @@
     slave->config = sc;
     sc->slave = slave;
 
-    ec_slave_request_state(slave, EC_SLAVE_STATE_OP);
-
     EC_CONFIG_DBG(sc, 1, "Attached slave %u.\n", slave->ring_position);
 
     return 0;