mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Fix identification of audio devices
This commit is contained in:
parent
be10ffd564
commit
924871859f
|
@ -49,7 +49,7 @@ def get_audio_devices():
|
|||
|
||||
|
||||
def device_crc(device) -> str:
|
||||
crc_hwid = crc_algorithm(bytes(f"{device}", encoding="utf-8"))
|
||||
crc_hwid = crc_algorithm(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
|
||||
|
|
Loading…
Reference in a new issue