diff --git a/cube/User/Src/mbusComm.c b/cube/User/Src/mbusComm.c index b28ff91..b098500 100644 --- a/cube/User/Src/mbusComm.c +++ b/cube/User/Src/mbusComm.c @@ -218,7 +218,7 @@ static void parseAndPrintFrame() { // mbusCommHandle.requestId, // parsedVIB.name, parsedVIB.unit, parsedVIB.exponent); if (parsedVIB.found) { - uint32_t value = strtol(mbus_data_record_value(record), NULL, 10); + int32_t value = strtol(mbus_data_record_value(record), NULL, 10); float weightedValue = ((float) value) * powf(10.0, ((float) parsedVIB.exponent)); coloredMsg(LOG_YELLOW, false, "mbc papf [%d] %s is %.1f %s (%d * 10^%d)", mbusCommHandle.requestId, parsedVIB.name, weightedValue, parsedVIB.unit,