beremiz

Parents 73295e742da2
Children 26236e691330
Fixing bug in forcing variables in runtime debug thread
--- a/targets/plc_debug.c Mon Nov 28 13:46:48 2011 +0100
+++ b/targets/plc_debug.c Fri Dec 09 10:26:56 2011 +0100
@@ -159,7 +159,7 @@
buffer_cursor = next_cursor;
}
/* re-force real value of outputs (M and Q)*/
- if(flags & (__IEC_FORCE_FLAG | __IEC_OUTPUT_FLAG)){
+ if((flags & __IEC_FORCE_FLAG) && (flags & __IEC_OUTPUT_FLAG)){
memcpy(real_value_p, visible_value_p, size);
}
}