fix problem with debugging external string variables
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 11 Apr 2017 17:45:49 +0300
changeset 1677 db05cb9e0439
parent 1676 eed01e0ab32a
child 1678 55b6db51eb63
fix problem with debugging external string variables

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