Merge pull request #22 from lategoodbye/master

Fixed typo in VIF list
This commit is contained in:
Robert Johansson 2012-09-15 18:37:34 -07:00
commit b5e98ba1bc

View File

@ -188,7 +188,7 @@ mbus_variable_vif vif_table[] = {
{ 0x6E, 1.0e0, "Units for H.C.A.", "H.C.A." },
/* E110 1111 Reserved */
{ 0x6E, 0.0, "Reserved", "Reserved" },
{ 0x6F, 0.0, "Reserved", "Reserved" },
/* E111 00nn Averaging Duration s */
{ 0x70, 1.0, "s", "Averaging Duration" }, /* seconds */
@ -974,7 +974,8 @@ mbus_vif_unit_normalize(int vif, double value, char **unit_out, double *value_ou
}
}
*unit_out = strdup("Unknown (VIF=0x%.2X)");
MBUS_ERROR("%s: Unknown VIF 0x%03X\n", __PRETTY_FUNCTION__, newVif);
*unit_out = strdup("Unknown (VIF=0x%.02X)");
*quantity_out = strdup("Unknown");
exponent = 0.0;
*value_out = 0.0;