targets/plc_debug.c
changeset 1677 db05cb9e0439
parent 1479 8f41aa88aa46
child 1800 1711339585ce
--- 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;
                 }