Skip to content
Snippets Groups Projects
Commit 906737f7 authored by Florian Pose's avatar Florian Pose
Browse files

Fixed SDO configuration via library.

parent 6a533afb
No related branches found
No related tags found
No related merge requests found
...@@ -255,7 +255,7 @@ int ecrt_slave_config_sdo(ec_slave_config_t *sc, uint16_t index, ...@@ -255,7 +255,7 @@ int ecrt_slave_config_sdo(ec_slave_config_t *sc, uint16_t index,
data.data = sdo_data; data.data = sdo_data;
data.size = size; 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"); fprintf(stderr, "Failed to configure SDO.\n");
return -1; // FIXME return -1; // FIXME
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment