1979 slave < master->slaves + master->slave_count; |
1980 slave < master->slaves + master->slave_count; |
1980 slave++) { |
1981 slave++) { |
1981 |
1982 |
1982 // set state to PREOP for all but eoe slaves |
1983 // set state to PREOP for all but eoe slaves |
1983 #ifdef EC_EOE |
1984 #ifdef EC_EOE |
|
1985 is_eoe_slave = 0; |
1984 // ... but leave EoE slaves in OP |
1986 // ... but leave EoE slaves in OP |
1985 list_for_each_entry(eoe, &master->eoe_handlers, list) { |
1987 list_for_each_entry(eoe, &master->eoe_handlers, list) { |
1986 if (slave != eoe->slave || !ec_eoe_is_open(eoe)) { |
1988 if (slave == eoe->slave && ec_eoe_is_open(eoe)) |
1987 ec_slave_request_state(slave, EC_SLAVE_STATE_PREOP); |
1989 is_eoe_slave = 1; |
1988 // mark for reconfiguration, because the master could have no |
1990 } |
1989 // possibility for a reconfiguration between two sequential operation |
1991 if (!is_eoe_slave) { |
1990 // phases. |
1992 ec_slave_request_state(slave, EC_SLAVE_STATE_PREOP); |
1991 slave->force_config = 1; |
1993 // mark for reconfiguration, because the master could have no |
1992 } |
1994 // possibility for a reconfiguration between two sequential operation |
|
1995 // phases. |
|
1996 slave->force_config = 1; |
1993 } |
1997 } |
1994 #else |
1998 #else |
1995 ec_slave_request_state(slave, EC_SLAVE_STATE_PREOP); |
1999 ec_slave_request_state(slave, EC_SLAVE_STATE_PREOP); |
1996 // mark for reconfiguration, because the master could have no |
2000 // mark for reconfiguration, because the master could have no |
1997 // possibility for a reconfiguration between two sequential operation |
2001 // possibility for a reconfiguration between two sequential operation |