Improve BCD decoding (#167)
* Introduce mbus_data_bcd_decode_hex The convert function mbus_data_bcd_decode (BCD to decimal) suffers from information loss in case of hexacimal digits. So introduce a new function mbus_data_bcd_decode_hex (BCD to hexadecimal), which isn't affected and use this for default XML output. But keep mbus_data_bcd_decode for normalized output.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
<Manufacturer>LSE</Manufacturer>
|
||||
<Version>153</Version>
|
||||
<ProductName>Siemens WFH21</ProductName>
|
||||
<Medium>Hot water</Medium>
|
||||
<Medium>Warm water (30-90°C)</Medium>
|
||||
<AccessNumber>235</AccessNumber>
|
||||
<Status>00</Status>
|
||||
<Signature>0000</Signature>
|
||||
|
Reference in New Issue
Block a user