Skip to content

Commit

Permalink
Remove initial upload of entry values
Browse files Browse the repository at this point in the history
  • Loading branch information
fjes committed Apr 7, 2017
1 parent 191dfc1 commit efbf251
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libethercat_wrapper/src/ethercat_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ static int slave_config(Ethercat_Master_t *master, int slaveindex)
sdo->entry_type = entry.data_type;
sdo->object_type = sdoi.object_code;
sdo->bit_length = entry.bit_length;
sdo->value = 0;

memmove(sdo->name, entry.description, EC_MAX_STRING_LENGTH);
memmove(sdo->read_access, entry.read_access, EC_SDO_ENTRY_ACCESS_COUNTER);
Expand All @@ -251,10 +252,6 @@ static int slave_config(Ethercat_Master_t *master, int slaveindex)
/* SDO requests are uploaded at master_start(), they are only
* needed when master and slave are in reql time context. */
sdo->request = NULL;

if (slave_sdo_upload(slave, sdo) != 0) {
fprintf(g_outstream, "Warning, upload of SDO 0x%04x:%d failed\n", sdo->index, sdo->subindex);
}
}
}

Expand Down

0 comments on commit efbf251

Please sign in to comment.