mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-27 20:44:00 +08:00
merge -r1583:1593 branches/stable-1.4: Fixed detaching oops.
This commit is contained in:
@@ -402,6 +402,11 @@ void ec_fsm_pdo_conf_action_next_sync(
|
||||
fsm->sync_index++;
|
||||
|
||||
for (; fsm->sync_index < EC_MAX_SYNC_MANAGERS; fsm->sync_index++) {
|
||||
if (!fsm->slave->config) { // slave configuration removed in the meantime
|
||||
fsm->state = ec_fsm_pdo_state_error;
|
||||
return;
|
||||
}
|
||||
|
||||
if (ec_pdo_list_copy(&fsm->pdos,
|
||||
&fsm->slave->config->sync_configs[fsm->sync_index].pdos)) {
|
||||
fsm->state = ec_fsm_pdo_state_error;
|
||||
|
||||
Reference in New Issue
Block a user