vif parsing

This commit is contained in:
Wolfgang Hottgenroth 2020-11-17 18:46:55 +01:00
parent 7bcfa7070d
commit c9f1ba9fa9
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -184,7 +184,7 @@ static void parseAndPrintFrame(t_mbusCommHandle *localMbusCommHandle) {
if (parsedVIB.found) { if (parsedVIB.found) {
uint8_t value = strtol(mbus_data_record_value(record), NULL, 10); uint8_t value = strtol(mbus_data_record_value(record), NULL, 10);
float weightedValue = ((float) value) * powf(10.0, ((float) parsedVIB.exponent)); float weightedValue = ((float) value) * powf(10.0, ((float) parsedVIB.exponent));
coloredMsg(LOG_YELLOW, true, "mbc papf [%d] result: %s is %d %s", coloredMsg(LOG_YELLOW, true, "mbc papf [%d] result: %s is %f %s",
localMbusCommHandle->requestId, parsedVIB.name, weightedValue, parsedVIB.unit); localMbusCommHandle->requestId, parsedVIB.name, weightedValue, parsedVIB.unit);
} }
} }