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
@ -30,14 +30,14 @@
|
||||
<Function>Value during error state</Function>
|
||||
<StorageNumber>0</StorageNumber>
|
||||
<Unit>Power (1e-1 W)</Unit>
|
||||
<Value>144521543</Value>
|
||||
<Value>DDEBB4DD</Value>
|
||||
</DataRecord>
|
||||
|
||||
<DataRecord id="3">
|
||||
<Function>Value during error state</Function>
|
||||
<StorageNumber>0</StorageNumber>
|
||||
<Unit>Volume flow (1e-4 m^3/h)</Unit>
|
||||
<Value>1521543</Value>
|
||||
<Value>EBB4DD</Value>
|
||||
</DataRecord>
|
||||
|
||||
<DataRecord id="4">
|
||||
|
Reference in New Issue
Block a user