# HG changeset patch # User laurent # Date 1323422816 -3600 # Node ID c48023b6f0eccc3c0c7723823e64728a21e89bde # Parent 73295e742da264a4ce9fbf093200473e80e602d4 Fixing bug in forcing variables in runtime debug thread diff -r 73295e742da2 -r c48023b6f0ec targets/plc_debug.c --- 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); } }