master/slave.c
changeset 467 2274de57ca84
parent 465 3779b60a7c9b
child 482 fbaaaf2a6234
--- a/master/slave.c	Fri Oct 27 15:07:01 2006 +0000
+++ b/master/slave.c	Mon Oct 30 15:39:03 2006 +0000
@@ -284,6 +284,7 @@
 void ec_slave_reset(ec_slave_t *slave /**< EtherCAT slave */)
 {
     ec_sdo_data_t *sdodata, *next_sdodata;
+    ec_sii_sync_t *sync;
 
     // remove FMMU configurations
     slave->fmmu_count = 0;
@@ -294,6 +295,11 @@
         kfree(sdodata->data);
         kfree(sdodata);
     }
+
+    // remove estimated sync manager sizes
+    list_for_each_entry(sync, &slave->sii_syncs, list) {
+        sync->est_length = 0;
+    }
 }
 
 /*****************************************************************************/