equal
deleted
inserted
replaced
139 pthread_mutex_unlock(&debug_wait_mutex); |
139 pthread_mutex_unlock(&debug_wait_mutex); |
140 } |
140 } |
141 |
141 |
142 void suspendDebug(void) |
142 void suspendDebug(void) |
143 { |
143 { |
|
144 __DEBUG = 0; |
144 /* Prevent PLC to enter debug code */ |
145 /* Prevent PLC to enter debug code */ |
145 pthread_mutex_lock(&debug_mutex); |
146 pthread_mutex_lock(&debug_mutex); |
146 } |
147 } |
147 |
148 |
148 void resumeDebug(void) |
149 void resumeDebug(void) |
149 { |
150 { |
|
151 __DEBUG = 1; |
150 /* Let PLC enter debug code */ |
152 /* Let PLC enter debug code */ |
151 pthread_mutex_unlock(&debug_mutex); |
153 pthread_mutex_unlock(&debug_mutex); |
152 } |
154 } |
153 |
155 |
154 /* from plc_python.c */ |
156 /* from plc_python.c */ |