master/slave.c
changeset 746 ef0f6eb5cd7c
parent 745 3f4e5a50733e
child 747 ac8a822c3e5b
equal deleted inserted replaced
745:3f4e5a50733e 746:ef0f6eb5cd7c
  1430         EC_ERR("Failed to obtain sync manager for PDO mapping of slave %u!\n",
  1430         EC_ERR("Failed to obtain sync manager for PDO mapping of slave %u!\n",
  1431                 slave->ring_position);
  1431                 slave->ring_position);
  1432         return -1;
  1432         return -1;
  1433     }
  1433     }
  1434 
  1434 
  1435     return ec_sync_add_pdo(sync, pdo);
  1435     if (ec_sync_add_pdo(sync, pdo))
       
  1436         return -1;
       
  1437 
       
  1438     sync->alt_mapping = 1;
       
  1439     return 0;
  1436 }
  1440 }
  1437 
  1441 
  1438 /*****************************************************************************/
  1442 /*****************************************************************************/
  1439 
  1443 
  1440 int ecrt_slave_pdo_mapping(ec_slave_t *slave, /**< EtherCAT slave */
  1444 int ecrt_slave_pdo_mapping(ec_slave_t *slave, /**< EtherCAT slave */