diff --git a/modem/audio.py b/modem/audio.py index b4d2031d..c4a96678 100644 --- a/modem/audio.py +++ b/modem/audio.py @@ -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