Fixed SDO configuration via library.
authorFlorian Pose <fp@igh-essen.com>
Wed, 18 Mar 2009 10:59:37 +0000
changeset 1371 00e2975dc17b
parent 1370 0625902b3904
child 1372 6b45c4c6f56f
Fixed SDO configuration via library.
lib/slave_config.c
--- a/lib/slave_config.c	Mon Mar 09 09:10:05 2009 +0000
+++ b/lib/slave_config.c	Wed Mar 18 10:59:37 2009 +0000
@@ -255,7 +255,7 @@
     data.data = sdo_data;
     data.size = size;
 
-    if (ioctl(sc->master->fd, EC_IOCTL_SC_REG_PDO_ENTRY, &data) == -1) {
+    if (ioctl(sc->master->fd, EC_IOCTL_SC_SDO, &data) == -1) {
         fprintf(stderr, "Failed to configure SDO.\n");
         return -1; // FIXME
     }