According to comment in mbus/mbus-protocol.c:50
I think that _mbus_manufacturerid(char *manufacturer) function should check generated id in the following way:
(0x0421 >= id && id <= 0x6b5a) ? id : 0
Now a ternary operator condition use two less than or equal symbols instead of one.
According to comment in mbus/mbus-protocol.c:50 I think that _mbus_manufacturerid(char *manufacturer) function should check generated id in the following way:
(0x0421 >= id && id <= 0x6b5a) ? id : 0
Now a ternary operator condition use two less than or equal symbols instead of one.