master/domain.c
changeset 353 beb26409ba22
parent 344 5d8281f1aa2a
child 363 58588a3a1562
equal deleted inserted replaced
352:3f79f0637c60 353:beb26409ba22
   191     bit_offset = 0;
   191     bit_offset = 0;
   192     byte_offset = 0;
   192     byte_offset = 0;
   193     list_for_each_entry(other_pdo, &slave->sii_pdos, list) {
   193     list_for_each_entry(other_pdo, &slave->sii_pdos, list) {
   194         if (other_pdo->sync_index != sync->index) continue;
   194         if (other_pdo->sync_index != sync->index) continue;
   195 
   195 
   196         list_for_each_entry(other_entry, &pdo->entries, list) {
   196         list_for_each_entry(other_entry, &other_pdo->entries, list) {
   197             if (other_entry == entry) {
   197             if (other_entry == entry) {
   198                 byte_offset = bit_offset / 8;
   198                 byte_offset = bit_offset / 8;
   199                 break;
   199                 break;
   200             }
   200             }
   201             bit_offset += other_entry->bit_length;
   201             bit_offset += other_entry->bit_length;