remove crcengine dependency

pull/746/head
DJ2LS 2024-07-20 19:17:57 +02:00
parent 12e42f8136
commit 5551eae607
2 changed files with 0 additions and 2 deletions

View File

@ -45,7 +45,6 @@ def get_audio_devices():
def device_crc(device) -> str:
crc_hwid = helpers.get_crc_16(bytes(f"{device['name']}.{device['hostapi']}", encoding="utf-8"))
crc_hwid = crc_hwid.to_bytes(2, byteorder="big")
crc_hwid = crc_hwid.hex()
return crc_hwid

View File

@ -7,7 +7,6 @@ def get_ports():
for port, desc, hwid in ports:
# calculate hex of hwid if we have unique names
crc_hwid = helpers.get_crc_16(bytes(hwid, encoding="utf-8"))
crc_hwid = crc_hwid.to_bytes(2, byteorder="big")
crc_hwid = crc_hwid.hex()
description = f"{desc} [{crc_hwid}]"
serial_devices.append(