targets/plc_debug.c
changeset 649 c48023b6f0ec
parent 611 b665a9001451
child 906 de452d65865c
equal deleted inserted replaced
648:73295e742da2 649:c48023b6f0ec
   157                 memcpy(buffer_cursor, visible_value_p, size);
   157                 memcpy(buffer_cursor, visible_value_p, size);
   158                 /* increment cursor according size*/
   158                 /* increment cursor according size*/
   159                 buffer_cursor = next_cursor;
   159                 buffer_cursor = next_cursor;
   160             }
   160             }
   161             /* re-force real value of outputs (M and Q)*/
   161             /* re-force real value of outputs (M and Q)*/
   162             if(flags & (__IEC_FORCE_FLAG | __IEC_OUTPUT_FLAG)){
   162             if((flags & __IEC_FORCE_FLAG) && (flags & __IEC_OUTPUT_FLAG)){
   163                 memcpy(real_value_p, visible_value_p, size);
   163                 memcpy(real_value_p, visible_value_p, size);
   164             }
   164             }
   165         }
   165         }
   166         if(flags & __IEC_RETAIN_FLAG){
   166         if(flags & __IEC_RETAIN_FLAG){
   167             /* compute next cursor positon*/
   167             /* compute next cursor positon*/