targets/plc_common_main.c
changeset 239 112b4bc523b3
parent 236 a32817e81f5e
child 245 60a221d72152
--- a/targets/plc_common_main.c	Thu Sep 04 16:07:14 2008 +0200
+++ b/targets/plc_common_main.c	Fri Sep 05 16:25:57 2008 +0200
@@ -54,13 +54,11 @@
 
     %(retrieve_calls)s
 
-    if(Debugging) __retrieve_debug();
+    /*__retrieve_debug();*/
     
     config_run__(__tick);
 
-    if(Debugging) __publish_debug();
-    else if(WasDebugging) AbortDebug();
-    WasDebugging = Debugging;
+    __publish_debug();
     
     %(publish_calls)s
 
@@ -173,18 +171,3 @@
 		}
 	}
 }
-
-extern int WaitDebugData();
-void suspendDebug()
-{
-    /* Prevent PLC to enter debug code */
-    Debugging = 0;
-    /* wait next tick end to be sure*/
-    WaitDebugData();
-}
-
-void resumeDebug()
-{
-    /* Let PLC enter debug code */
-    Debugging = 1;
-}