some highlighting of output

This commit is contained in:
Wolfgang Hottgenroth 2020-11-03 15:34:33 +01:00
parent 11bce773b1
commit e3bbc8e61b
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}
}

View File

@ -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");
}