targets/Linux/plc_Linux_main.c
changeset 446 1edde533db19
parent 397 6a7ff66a811d
child 462 274e83a5534e
--- a/targets/Linux/plc_Linux_main.c	Sun Nov 29 18:57:49 2009 +0100
+++ b/targets/Linux/plc_Linux_main.c	Tue Dec 01 13:41:29 2009 +0100
@@ -131,12 +131,12 @@
 }
 
 extern unsigned long __tick;
-/* from plc_debugger.c */
-unsigned long WaitDebugData()
+
+int WaitDebugData(unsigned long *tick)
 {
+    *tick = __debug_tick;
     /* Wait signal from PLC thread */
-    if(pthread_mutex_lock(&debug_wait_mutex)) return -1;
-    return __debug_tick;
+    return pthread_mutex_lock(&debug_wait_mutex);
 }
 
 /* Called by PLC thread when debug_publish finished