diff --git a/master/domain.c b/master/domain.c index c1ef16e6c986d99c32268b2c521d593115549b46..48e67407e537377bc1a4fa78d25e9439ac97b8bf 100644 --- a/master/domain.c +++ b/master/domain.c @@ -193,7 +193,7 @@ int ec_domain_reg_pdo_entry(ec_domain_t *domain, /**< EtherCAT domain */ list_for_each_entry(other_pdo, &slave->sii_pdos, list) { if (other_pdo->sync_index != sync->index) continue; - list_for_each_entry(other_entry, &pdo->entries, list) { + list_for_each_entry(other_entry, &other_pdo->entries, list) { if (other_entry == entry) { byte_offset = bit_offset / 8; break;