targets/plc_debug.c
changeset 244 85e92d9e34a8
parent 239 112b4bc523b3
child 280 f2ef79f3dba0
--- a/targets/plc_debug.c	Fri Sep 05 18:15:18 2008 +0200
+++ b/targets/plc_debug.c	Sun Sep 07 10:03:23 2008 +0200
@@ -53,7 +53,11 @@
 void __init_debug()
 {
 %(variables_pointer_type_table_initializer)s
-};
+AtomicCompareExchange(
+            &buffer_state,
+            BUFFER_BUSY,
+            BUFFER_FREE);
+}
 
 void __cleanup_debug()
 {