Skip to content

Commit

Permalink
Add product strings of Carlo Gavazzi EM21,EM24,EM33
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wahren committed May 11, 2014
1 parent 08f1437 commit f992072
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions mbus/mbus-protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,29 @@ mbus_data_product_name(mbus_data_variable_header *header)
}
}
}
else if (manufacturer == mbus_manufacturer_id("GAV"))
{
if (header->medium == MBUS_VARIABLE_DATA_MEDIUM_ELECTRICITY)
{
switch (header->version)
{
case 0x2D:
case 0x2E:
case 0x2F:
case 0x30:
strcpy(buff,"Carlo Gavazzi EM24");
break;
case 0x39:
case 0x3A:
strcpy(buff,"Carlo Gavazzi EM21");
break;
case 0x40:
strcpy(buff,"Carlo Gavazzi EM33");
break;

}
}
}
else if (manufacturer == mbus_manufacturer_id("GMC"))
{
switch (header->version)
Expand Down

0 comments on commit f992072

Please sign in to comment.