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:

committed by
Stefan Wahren

parent
0edc297c47
commit
2a66e6a53b
@ -58,7 +58,7 @@
|
||||
<Function>Instantaneous value</Function>
|
||||
<StorageNumber>0</StorageNumber>
|
||||
<Unit>Temperature Difference (1e-2 deg C)</Unit>
|
||||
<Value>1500018</Value>
|
||||
<Value>F00018</Value>
|
||||
</DataRecord>
|
||||
|
||||
<DataRecord id="7">
|
||||
|
Reference in New Issue
Block a user