mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-20 17:17:41 +08:00
Removed deprecated default_config flag.
This commit is contained in:
@@ -53,7 +53,6 @@ void ec_pdo_init(
|
||||
pdo->sync_index = -1; // not assigned
|
||||
pdo->name = NULL;
|
||||
INIT_LIST_HEAD(&pdo->entries);
|
||||
pdo->default_config = 0;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
@@ -67,7 +66,6 @@ int ec_pdo_init_copy(ec_pdo_t *pdo, const ec_pdo_t *other_pdo)
|
||||
pdo->sync_index = other_pdo->sync_index;
|
||||
pdo->name = NULL;
|
||||
INIT_LIST_HEAD(&pdo->entries);
|
||||
pdo->default_config = other_pdo->default_config;
|
||||
|
||||
if (ec_pdo_set_name(pdo, other_pdo->name))
|
||||
goto out_return;
|
||||
|
||||
@@ -59,8 +59,6 @@ typedef struct {
|
||||
int8_t sync_index; /**< Assigned sync manager. */
|
||||
char *name; /**< Pdo name. */
|
||||
struct list_head entries; /**< List of Pdo entries. */
|
||||
unsigned int default_config; /**< The entries contain the default Pdo
|
||||
configuration. */
|
||||
} ec_pdo_t;
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
@@ -258,8 +258,6 @@ void ec_slave_config_load_default_mapping(
|
||||
EC_DBG("Loading default configuration for Pdo 0x%04X in"
|
||||
" config %u:%u.\n", pdo->index, sc->alias, sc->position);
|
||||
|
||||
pdo->default_config = 1;
|
||||
|
||||
if (!sc->slave) {
|
||||
EC_WARN("Failed to load default Pdo configuration for %u:%u:"
|
||||
" Slave not found.\n", sc->alias, sc->position);
|
||||
|
||||
Reference in New Issue
Block a user