changeset 614 | eed1dcf311a1 |
parent 580 | 9dd978e6537c |
child 681 | 383864958dac |
--- a/targets/Win32/plc_Win32_main.c Thu Sep 22 17:00:56 2011 +0200 +++ b/targets/Win32/plc_Win32_main.c Thu Sep 22 17:33:34 2011 +0200 @@ -183,14 +183,14 @@ ReleaseSemaphore(debug_wait_sem, 1, NULL); } -void suspendDebug(int disable) +int suspendDebug(int disable) { /* Prevent PLC to enter debug code */ WaitForSingleObject(debug_sem, INFINITE); - /*__DEBUG is protected by this mutex */ __DEBUG = !disable; if(disable) ReleaseSemaphore(debug_sem, 1, NULL); + return 0; } void resumeDebug()