From 669eca760a4a984cbd869e4d39abe63de98257df Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 2 Nov 2020 19:50:28 +0100 Subject: [PATCH] meterbus state machine --- cube/User/Src/mbusComm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cube/User/Src/mbusComm.c b/cube/User/Src/mbusComm.c index 9fd8fda..fa80dda 100644 --- a/cube/User/Src/mbusComm.c +++ b/cube/User/Src/mbusComm.c @@ -53,11 +53,11 @@ static t_mbusCommHandle mbusCommHandle = { .state = MBCS_IDLE, .retryCnt = 0, .c static void printFrame(t_longframe *frame) { - logMsg("%02x %02x %02x %02x, C:%02x A:%02x CI:%02x", + logMsg("frame: %02x %02x %02x %02x, C:%02x A:%02x CI:%02x", frame->start1, frame->length1, frame->length2, frame->start2, frame->c, frame->a, frame->ci); - logMsg("userdata ..."); - logMsg("CHKSUM:%02x %02x\n", frame->chksum, frame->stop); + logMsg("frame: userdata ..."); + logMsg("frame: CHKSUM:%02x %02x", frame->chksum, frame->stop); } static void handleRequestEngine(void *handle);