minimal example with SDO configs.
authorFlorian Pose <fp@igh-essen.com>
Fri, 27 Oct 2006 15:01:10 +0000
changeset 463 938de5ebe1ca
parent 462 e6fac0c8bc92
child 464 6c21a8d8c785
minimal example with SDO configs.
examples/mini/mini.c
--- a/examples/mini/mini.c	Fri Oct 27 14:41:09 2006 +0000
+++ b/examples/mini/mini.c	Fri Oct 27 15:01:10 2006 +0000
@@ -125,7 +125,7 @@
 
 int __init init_mini_module(void)
 {
-#if 0
+#if 1
     ec_slave_t *slave;
 #endif
 
@@ -166,8 +166,8 @@
     }
 #endif
 
-#if 0
-    if (!(slave = ecrt_master_get_slave(master, "3")))
+#if 1
+    if (!(slave = ecrt_master_get_slave(master, "2")))
         goto out_release_master;
 
     if (ecrt_slave_conf_sdo8(slave, 0x4061, 1, 0))