MQTT: remove debug prints
authorEdouard Tisserant <edouard@beremiz.fr>
Thu, 26 Sep 2024 09:40:09 +0200
changeset 4021 07504d4c40ee
parent 4020 205d5379b35e
child 4022 dee0efbf8452
MQTT: remove debug prints
mqtt/mqtt_client_gen.py
mqtt/mqtt_template.c
--- a/mqtt/mqtt_client_gen.py	Wed Sep 25 11:10:33 2024 +0200
+++ b/mqtt/mqtt_client_gen.py	Thu Sep 26 09:40:09 2024 +0200
@@ -441,7 +441,6 @@
             # to be sorted with base types in last position
             basetypes.append(datatype)
             infos = datatype_info_getter(datatype)
-            print(infos)
             element_type = infos["type"]
             if element_type == "Structure":
                 structures.add(datatype)
--- a/mqtt/mqtt_template.c	Wed Sep 25 11:10:33 2024 +0200
+++ b/mqtt/mqtt_template.c	Thu Sep 26 09:40:09 2024 +0200
@@ -141,8 +141,6 @@
 static void scan_string(const char *str, int len, void *user_data) {{
 	IEC_STRING *iecstr = (IEC_STRING*)user_data;
 	__strlen_t ieclen = len > STR_MAX_LEN ? STR_MAX_LEN : len;
-    printf("%.*s", len, str);
-    printf("%.*s", ieclen, str);
 	memcpy(iecstr->body, str, ieclen);
     iecstr->len = ieclen;
 }}