Using EC_END.

This commit is contained in:
Florian Pose 2008-07-04 16:54:26 +00:00
parent c3e4319e34
commit be63f1243b
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc,
for (i = 0; i < n_syncs; i++) {
sync_info = &syncs[i];
if (sync_info->index == 0xff)
if (sync_info->index == (uint8_t) EC_END)
break;
if (sync_info->index >= EC_MAX_SYNC_MANAGERS) {