vif parsing
This commit is contained in:
		| @@ -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); | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user