equal
deleted
inserted
replaced
120 const ec_sync_t *sync /**< EtherCAT sync manager. */ |
120 const ec_sync_t *sync /**< EtherCAT sync manager. */ |
121 ) |
121 ) |
122 { |
122 { |
123 int index = sync->index; |
123 int index = sync->index; |
124 |
124 |
125 if (sync->slave && sync->slave->sii_mailbox_protocols) { |
125 if (sync->slave && sync->slave->sii.mailbox_protocols) { |
126 index -= 2; |
126 index -= 2; |
127 } |
127 } |
128 |
128 |
129 if (index < 0 || index > 1) { |
129 if (index < 0 || index > 1) { |
130 EC_WARN("ec_sync_get_direction(): invalid sync manager index.\n"); |
130 EC_WARN("ec_sync_get_direction(): invalid sync manager index.\n"); |