vif parsing
This commit is contained in:
@ -22,6 +22,7 @@ static parsedVIB_t parseVIB_default(mbus_value_information_block vib) {
|
||||
if ((vib.vif & 0b00000000) == 0b00000000) {
|
||||
strcpy(parsedVIB.name, "Energy");
|
||||
strcpy(parsedVIB.unit, "Wh");
|
||||
parsedVIB.exponent = (vib.vif & 0b0111) - 3;
|
||||
}
|
||||
|
||||
return parsedVIB;
|
||||
|
Reference in New Issue
Block a user