util.py 122 B

1234
  1. def u32toBCD(val): # noqa: N802
  2. """Create BCD string
  3. """
  4. return f'{val>>24}.{val>>16 & 0xFF}.{val & 0xFFFF}'