master/sync.c
changeset 834 0791aac03180
parent 814 a51f857b1b2d
child 838 3cb5769059f4
equal deleted inserted replaced
833:5dca670ae4dd 834:0791aac03180
   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");