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

Using EC_END.

parent 7d00aafc
No related branches found
No related tags found
No related merge requests found
...@@ -512,7 +512,7 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc, ...@@ -512,7 +512,7 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc,
for (i = 0; i < n_syncs; i++) { for (i = 0; i < n_syncs; i++) {
sync_info = &syncs[i]; sync_info = &syncs[i];
if (sync_info->index == 0xff) if (sync_info->index == (uint8_t) EC_END)
break; break;
if (sync_info->index >= EC_MAX_SYNC_MANAGERS) { if (sync_info->index >= EC_MAX_SYNC_MANAGERS) {
......
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