From 924871859ff6207059d2fbb3d5f3eadb572b971b Mon Sep 17 00:00:00 2001 From: Pedro Date: Wed, 15 Nov 2023 21:14:56 +0100 Subject: [PATCH] Fix identification of audio devices --- modem/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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