DataInformationBlock calculations

This commit is contained in:
hg
2015-06-12 12:13:34 +02:00
parent 53789088f2
commit d64e8bff98
4 changed files with 253 additions and 48 deletions

View File

@ -10,7 +10,7 @@ from MeterbusLibExceptions import MediumConversionException
def bcd(data):
v = ""
for c in data:
for c in reversed(data):
v += str((c & 0xf0) >> 4)
v += str(c & 0x0f)
return v