author | greg |
Sun, 07 Sep 2008 15:54:09 +0200 | |
changeset 247 | 655d5fef0204 |
parent 246 | 3613c6ee9e0e |
child 248 | 444d4db3faea |
--- a/targets/Win32/plc_Win32_main.c Sun Sep 07 15:23:32 2008 +0200 +++ b/targets/Win32/plc_Win32_main.c Sun Sep 07 15:54:09 2008 +0200 @@ -161,12 +161,14 @@ void suspendDebug() { + __DEBUG = 0; /* Prevent PLC to enter debug code */ WaitForSingleObject(debug_sem, INFINITE); } void resumeDebug() { + __DEBUG = 1; /* Let PLC enter debug code */ ReleaseSemaphore(debug_sem, 1, NULL); }