mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-23 02:23:47 +08:00
Fixed bug causing unloading of realtime module being very slow after topology change.
This commit is contained in:
@@ -7,7 +7,6 @@ $Id$
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
* Release 1.2:
|
||||
- Find bug causing slow unloading after topology change.
|
||||
- Introduce topology_change_pending.
|
||||
- Update feature lists.
|
||||
|
||||
|
||||
@@ -513,6 +513,15 @@ void ec_master_leave_operation_mode(ec_master_t *master
|
||||
ec_slave_reset(slave);
|
||||
ec_slave_request_state(slave, EC_SLAVE_STATE_PREOP);
|
||||
|
||||
// don't try to set PREOP for slaves that don't respond,
|
||||
// because of 3 second timeout.
|
||||
if (!slave->online) {
|
||||
if (master->debug_level)
|
||||
EC_DBG("Skipping to configure offline slave %i.\n",
|
||||
slave->ring_position);
|
||||
continue;
|
||||
}
|
||||
|
||||
ec_fsm_slave_start_conf(&fsm_slave, slave);
|
||||
while (ec_fsm_slave_exec(&fsm_slave)) {
|
||||
ec_master_sync_io(master);
|
||||
|
||||
Reference in New Issue
Block a user