master/slave.c
branchstable-1.5
changeset 2419 fdb85a806585
parent 2374 e898451c054a
child 2421 bc2d4bf9cbe5
--- a/master/slave.c	Thu Sep 06 14:40:10 2012 +0200
+++ b/master/slave.c	Thu Sep 06 18:28:57 2012 +0200
@@ -62,6 +62,7 @@
 void ec_slave_init(
         ec_slave_t *slave, /**< EtherCAT slave */
         ec_master_t *master, /**< EtherCAT master */
+        ec_device_index_t dev_idx, /**< Device index. */
         uint16_t ring_position, /**< ring position */
         uint16_t station_address /**< station address to configure */
         )
@@ -70,6 +71,7 @@
     int ret;
 
     slave->master = master;
+    slave->device_index = dev_idx;
     slave->ring_position = ring_position;
     slave->station_address = station_address;
     slave->effective_alias = 0x0000;