From 27d6d71ec921cb2145ca85f380249e5bd7e76c73 Mon Sep 17 00:00:00 2001 From: Din Tort Date: Sat, 28 Feb 2026 16:13:23 +0100 Subject: [PATCH] Skip Logitech webcams (PID 0x0800 to 0x09FF) to prevent them from locking up during hidpp checks #3145 - format hex --- lib/hidapi/hidapi_impl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hidapi/hidapi_impl.py b/lib/hidapi/hidapi_impl.py index ee8c238a..c04eddb5 100644 --- a/lib/hidapi/hidapi_impl.py +++ b/lib/hidapi/hidapi_impl.py @@ -36,10 +36,10 @@ from time import sleep from typing import Any from typing import Callable -from hidapi.common import DeviceInfo - from logitech_receiver.common import LOGITECH_VENDOR_ID +from hidapi.common import DeviceInfo + if typing.TYPE_CHECKING: import gi @@ -255,7 +255,7 @@ def _match( # Skip Logitech webcams to prevent them from locking up during hidpp checks # (product IDs range for webcams from docs/usb.ids.txt) - if vid == LOGITECH_VENDOR_ID and 0x0800 <= pid <= 0x09ff: + if vid == LOGITECH_VENDOR_ID and 0x0800 <= pid <= 0x09FF: logger.info(f"Skipping Logitech webcam {device['path']} ({bus_id}/{vid:04X}/{pid:04X})") return None