beremiz

add __DEBUG variable

2008-09-07, greg
655d5fef0204
Parents 3613c6ee9e0e
Children 444d4db3faea
add __DEBUG variable
--- 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);
}