lib/slave_config.c
changeset 1371 00e2975dc17b
parent 1363 11c0b2caa253
child 1413 44c2b7c0ae1a
equal deleted inserted replaced
1370:0625902b3904 1371:00e2975dc17b
   253     data.index = index;
   253     data.index = index;
   254     data.subindex = subindex;
   254     data.subindex = subindex;
   255     data.data = sdo_data;
   255     data.data = sdo_data;
   256     data.size = size;
   256     data.size = size;
   257 
   257 
   258     if (ioctl(sc->master->fd, EC_IOCTL_SC_REG_PDO_ENTRY, &data) == -1) {
   258     if (ioctl(sc->master->fd, EC_IOCTL_SC_SDO, &data) == -1) {
   259         fprintf(stderr, "Failed to configure SDO.\n");
   259         fprintf(stderr, "Failed to configure SDO.\n");
   260         return -1; // FIXME
   260         return -1; // FIXME
   261     }
   261     }
   262 
   262 
   263     return 0;
   263     return 0;