diff --git a/cube/Makefile b/cube/Makefile index 6b0c250..4ef4919 100644 --- a/cube/Makefile +++ b/cube/Makefile @@ -37,7 +37,7 @@ BUILD_DIR = build ###################################### # C sources C_SOURCES = \ -User/Src/mqttComm.c User/Src/cmdHandler.c User/Src/ports.c User/Src/eeprom.c User/Src/frontend.c User/Src/logger.c User/Src/loopCtrl.c User/Src/main2.c User/Src/mbusComm.c User/Src/ringbuffer.c User/Src/show.c User/Src/utils.c User/Src/wizHelper.c hottislib/PontCoopScheduler.c \ +User/Src/mbusParserExt.c User/Src/mqttComm.c User/Src/cmdHandler.c User/Src/ports.c User/Src/eeprom.c User/Src/frontend.c User/Src/logger.c User/Src/loopCtrl.c User/Src/main2.c User/Src/mbusComm.c User/Src/ringbuffer.c User/Src/show.c User/Src/utils.c User/Src/wizHelper.c hottislib/PontCoopScheduler.c \ libmbus/mbus/mbus-protocol.c \ Core/Src/main.c \ Core/Src/gpio.c \ diff --git a/cube/User/Src/mbusComm.c b/cube/User/Src/mbusComm.c index dec49e6..d55485c 100644 --- a/cube/User/Src/mbusComm.c +++ b/cube/User/Src/mbusComm.c @@ -12,6 +12,8 @@ #include #include #include +#include + #include @@ -174,6 +176,10 @@ static void parseAndPrintFrame(t_mbusCommHandle *localMbusCommHandle) { vifeIdx, record->drh.vib.vife[vifeIdx]); } + parsedVIB_t parsedVIB = parseVIB(record->drh.vib); + coloredMsg(LOG_YELLOW, true, "mbc papf [%d] parsed VIB N: %s, U: %s, E: %d", + localMbusCommHandle->requestId, + parsedVIB.name, parsedVIB.unit, parsedVIB.exponent); } } }