Updated mini example.
authorFlorian Pose <fp@igh-essen.com>
Tue, 15 Aug 2006 09:22:49 +0000
changeset 348 8b19d6fab6f5
parent 347 d201392748eb
child 349 e521f03e9d94
Updated mini example.
examples/mini/mini.c
--- a/examples/mini/mini.c	Tue Aug 15 09:22:22 2006 +0000
+++ b/examples/mini/mini.c	Tue Aug 15 09:22:49 2006 +0000
@@ -63,8 +63,8 @@
 uint8_t k_stat;
 
 ec_pdo_reg_t domain1_pdos[] = {
-    {"1", Beckhoff_EL4132_Output1, &r_ana_out},
-    {"8", Beckhoff_EL5001_Value, NULL},
+    {"2", Beckhoff_EL4132_Output1, &r_ana_out},
+    {"3", Beckhoff_EL5001_Value, NULL},
     {}
 };
 
@@ -148,7 +148,7 @@
         goto out_release_master;
     }
 
-    if (!(slave = ecrt_master_get_slave(master, "8")))
+    if (!(slave = ecrt_master_get_slave(master, "3")))
         goto out_release_master;
 
     if (ecrt_slave_conf_sdo8(slave, 0x4061, 1, 0))