mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-06 03:41:52 +08:00
Minor: Again moved setting of alternate PDO mapping flag.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user