mbus_manufacturer_id: add error checking code

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
Michael Heimpold
2014-01-18 20:43:57 +01:00
parent 0fccc0e337
commit f262138572
2 changed files with 24 additions and 3 deletions

View File

@ -493,7 +493,8 @@ typedef struct _mbus_data_secondary_address {
#define MBUS_VARIABLE_DATA_MEDIUM_ADC 0x19
//
// Return manufacturer ID
// Returns the manufacturer ID or zero if the given
// string could not be converted into an ID
//
unsigned int mbus_manufacturer_id(char *manufacturer);