From e3bbc8e61ba61a528105318de6f415cf88873e79 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 3 Nov 2020 15:34:33 +0100 Subject: [PATCH] some highlighting of output --- cube/User/Src/main2.c | 2 +- cube/User/Src/mbusComm.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cube/User/Src/main2.c b/cube/User/Src/main2.c index 720b442..b68e92a 100644 --- a/cube/User/Src/main2.c +++ b/cube/User/Src/main2.c @@ -173,7 +173,7 @@ void scheduleMBusRequest(void *handle) { if (devices[i].delay <= 0) { devices[i].delay = devices[i].period; devices[i].waiting = true; - logMsg("\033[92m*** Scheduled: %s\033[m", devices[i].deviceName); + logMsg("\x1b[7m *** Scheduled: %s\x1b[0m ", devices[i].deviceName); } } } diff --git a/cube/User/Src/mbusComm.c b/cube/User/Src/mbusComm.c index 86f6cd4..5e1eb42 100644 --- a/cube/User/Src/mbusComm.c +++ b/cube/User/Src/mbusComm.c @@ -91,6 +91,7 @@ static t_mbusCommHandle mbusCommHandle = { .state = MBCS_IDLE, .retryCnt = 0, .c static void parseAndPrintFrame(t_mbusCommHandle *mbusCommHandle) { + logMsg("\x1b[1m"); t_longframe *frame = &(mbusCommHandle->frame); mbus_frame reply; @@ -161,6 +162,7 @@ static void parseAndPrintFrame(t_mbusCommHandle *mbusCommHandle) { } else { logMsg("papf err: unable to parse frame"); } + logMsg("\x1b[0m"); }