vif parsing
This commit is contained in:
parent
7bcfa7070d
commit
c9f1ba9fa9
@ -184,7 +184,7 @@ static void parseAndPrintFrame(t_mbusCommHandle *localMbusCommHandle) {
|
||||
if (parsedVIB.found) {
|
||||
uint8_t value = strtol(mbus_data_record_value(record), NULL, 10);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user