svghmi/svghmi.py
branchsvghmi
changeset 2767 302347f48193
parent 2765 887aba5ef178
child 2768 31785529a657
--- a/svghmi/svghmi.py	Fri Aug 23 14:01:31 2019 +0200
+++ b/svghmi/svghmi.py	Mon Aug 26 08:54:02 2019 +0200
@@ -21,6 +21,7 @@
 
 from util.ProcessLogger import ProcessLogger
 from runtime.typemapping import DebugTypesSize
+import targets
 
 HMI_TYPES_DESC = {
     "HMI_CLASS":{},
@@ -206,7 +207,8 @@
         svghmi_c_code = svghmi_c_code % { 
             "variable_decl_array": ",\n".join(variable_decl_array),
             "extern_variables_declarations": "\n".join(extern_variables_declarations),
-            "buffer_size": buf_index
+            "buffer_size": buf_index,
+            "var_access_code": targets.GetCode("var_access.c")
             }
 
         gen_svghmi_c_path = os.path.join(buildpath, "svghmi.c")