beremiz

db05cb9e0439
Parents eed01e0ab32a
Children 55b6db51eb63
fix problem with debugging external string variables

Debug update stopped if external string variable added to debug
variable panel.
--- 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;
}