# HG changeset patch # User Andrey Skvortsov # Date 1491921949 -10800 # Node ID db05cb9e0439d41d12f7d43df430b81347d13a61 # Parent eed01e0ab32a640e83ae16d039cf15fc83d44412 fix problem with debugging external string variables Debug update stopped if external string variable added to debug variable panel. diff -r eed01e0ab32a -r db05cb9e0439 targets/plc_debug.c --- a/targets/plc_debug.c Tue Apr 11 12:51:35 2017 +0300 +++ b/targets/plc_debug.c Tue Apr 11 17:45:49 2017 +0300 @@ -165,7 +165,9 @@ /* compute next cursor positon. No need to check overflow, as BUFFER_SIZE is computed large enough */ - if(dsc->type == STRING_ENUM){ + if((dsc->type == STRING_ENUM) || + (dsc->type == STRING_P_ENUM) || + (dsc->type == STRING_O_ENUM)){ /* optimization for strings */ size = ((STRING*)visible_value_p)->len + 1; }