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

Minor: Again moved setting of alternate PDO mapping flag.

parent 9a5c6ff5
No related branches found
No related tags found
No related merge requests found
......@@ -1432,7 +1432,11 @@ int ecrt_slave_pdo_mapping_add(
return -1;
}
return ec_sync_add_pdo(sync, pdo);
if (ec_sync_add_pdo(sync, pdo))
return -1;
sync->alt_mapping = 1;
return 0;
}
/*****************************************************************************/
......
......@@ -172,7 +172,6 @@ int ec_sync_add_pdo(
mapped_pdo->sync_index = sync->index;
list_add_tail(&mapped_pdo->list, &sync->pdos);
sync->alt_mapping = 1;
return 0;
}
......
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