Tidy up python client - add file
This commit is contained in:
parent
ca8af27673
commit
5c21830da2
1 changed files with 4 additions and 0 deletions
4
lib/python/xap_client/util.py
Normal file
4
lib/python/xap_client/util.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
def u32toBCD(val): # noqa: N802
|
||||
"""Create BCD string
|
||||
"""
|
||||
return f'{val>>24}.{val>>16 & 0xFF}.{val & 0xFFFF}'
|
||||
Loading…
Reference in a new issue