Skip Logitech webcams (PID 0x0800 to 0x09FF) to prevent them from locking up during hidpp checks #3145 - format hex
This commit is contained in:
parent
3e23738bac
commit
27d6d71ec9
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue