diff -r 85e92d9e34a8 -r 60a221d72152 targets/Linux/plc_Linux_main.c --- a/targets/Linux/plc_Linux_main.c Sun Sep 07 10:03:23 2008 +0200 +++ b/targets/Linux/plc_Linux_main.c Sun Sep 07 10:06:19 2008 +0200 @@ -137,12 +137,14 @@ void suspendDebug() { + __DEBUG = 0; /* Prevent PLC to enter debug code */ pthread_mutex_lock(&debug_mutex); } void resumeDebug() { + __DEBUG = 1; /* Let PLC enter debug code */ pthread_mutex_unlock(&debug_mutex); }