From b087aa2282d36304dfca5accc9d62c6ede9000c3 Mon Sep 17 00:00:00 2001
From: Florian Pose <fp@igh-essen.com>
Date: Thu, 31 Aug 2006 16:29:15 +0000
Subject: [PATCH] Fixed bug in data pointer calculation.

---
 master/domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/master/domain.c b/master/domain.c
index c1ef16e6..48e67407 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;
-- 
GitLab