From 68691b422044028af8302f726b5f865c3b429fe9 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 3 Nov 2020 10:51:02 +0100 Subject: [PATCH] first use of libmbus --- cube/User/Src/logger.c | 4 ++-- cube/User/Src/mbusComm.c | 10 +--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/cube/User/Src/logger.c b/cube/User/Src/logger.c index 6845697..4f41092 100644 --- a/cube/User/Src/logger.c +++ b/cube/User/Src/logger.c @@ -20,8 +20,8 @@ #define LOGBUFFER_SIZE 32 #define MSGBUFFER_SIZE 16 #else -#define LOGBUFFER_SIZE 16384 -#define MSGBUFFER_SIZE 8192 +#define LOGBUFFER_SIZE 1024 +#define MSGBUFFER_SIZE 128 #endif // TEST diff --git a/cube/User/Src/mbusComm.c b/cube/User/Src/mbusComm.c index b80632b..f7d2062 100644 --- a/cube/User/Src/mbusComm.c +++ b/cube/User/Src/mbusComm.c @@ -78,16 +78,8 @@ static void parseAndPrintFrame(t_longframe *frame) { memset(&frame_data, 0, sizeof(frame_data)); r = mbus_frame_data_parse(&reply, &frame_data); - logMsg("papf parse: %d", r); + logMsg("papf parse: %d, t:%d", r, frame_data.type); - char *xml = mbus_frame_data_xml(&frame_data); - logMsg("xml ptr: %p, %d", xml, strlen(xml)); - if (xml != NULL) { - logMsg("XML: %s", xml); - free(xml); - } else { - logMsg("xml is NULL"); - } }