Removed deprecated default_config flag.
authorFlorian Pose <fp@igh-essen.com>
Thu, 12 Jun 2008 07:47:26 +0000
changeset 996 1c7033e7c1b9
parent 995 54149a703c47
child 997 652180478e95
Removed deprecated default_config flag.
master/pdo.c
master/pdo.h
master/slave_config.c
--- a/master/pdo.c	Thu Jun 12 07:45:27 2008 +0000
+++ b/master/pdo.c	Thu Jun 12 07:47:26 2008 +0000
@@ -53,7 +53,6 @@
     pdo->sync_index = -1; // not assigned 
     pdo->name = NULL;
     INIT_LIST_HEAD(&pdo->entries);
-    pdo->default_config = 0;
 }
 
 /*****************************************************************************/
@@ -67,7 +66,6 @@
     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;
--- a/master/pdo.h	Thu Jun 12 07:45:27 2008 +0000
+++ b/master/pdo.h	Thu Jun 12 07:47:26 2008 +0000
@@ -59,8 +59,6 @@
     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;
 
 /*****************************************************************************/
--- a/master/slave_config.c	Thu Jun 12 07:45:27 2008 +0000
+++ b/master/slave_config.c	Thu Jun 12 07:47:26 2008 +0000
@@ -258,8 +258,6 @@
         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);