equal
deleted
inserted
replaced
135 pthread_mutex_unlock(&wait_mutex); |
135 pthread_mutex_unlock(&wait_mutex); |
136 } |
136 } |
137 |
137 |
138 void suspendDebug() |
138 void suspendDebug() |
139 { |
139 { |
|
140 __DEBUG = 0; |
140 /* Prevent PLC to enter debug code */ |
141 /* Prevent PLC to enter debug code */ |
141 pthread_mutex_lock(&debug_mutex); |
142 pthread_mutex_lock(&debug_mutex); |
142 } |
143 } |
143 |
144 |
144 void resumeDebug() |
145 void resumeDebug() |
145 { |
146 { |
|
147 __DEBUG = 1; |
146 /* Let PLC enter debug code */ |
148 /* Let PLC enter debug code */ |
147 pthread_mutex_unlock(&debug_mutex); |
149 pthread_mutex_unlock(&debug_mutex); |
148 } |
150 } |
149 |
151 |