Do net reset debug level on master reset.
authorFlorian Pose <fp@igh-essen.com>
Wed, 18 Oct 2006 13:10:06 +0000
changeset 415 0918aa9bfd0b
parent 414 60cd2fcc71ee
child 416 4f007cd2a79d
Do net reset debug level on master reset.
master/master.c
--- a/master/master.c	Wed Oct 18 12:34:00 2006 +0000
+++ b/master/master.c	Wed Oct 18 13:10:06 2006 +0000
@@ -129,6 +129,7 @@
     }
     master->idle_cycle_time_pos = 0;
     master->eoe_cycle_time_pos = 0;
+    master->debug_level = 0;
 
     // create workqueue
     if (!(master->workqueue = create_singlethread_workqueue("EtherCAT"))) {
@@ -251,7 +252,6 @@
     }
 
     master->datagram_index = 0;
-    master->debug_level = 0;
 
     master->stats.timeouts = 0;
     master->stats.corrupted = 0;