Skip Logitech webcams to prevent them from locking up during HID++ checks on Macs
* Skip Logitech webcams (PID 0x0800 to 0x09FF) to prevent them from locking up during hidpp checks #3145 * Skip Logitech webcams (PID 0x0800 to 0x09FF) to prevent them from locking up during hidpp checks #3145 - format comment * Skip Logitech webcams (PID 0x0800 to 0x09FF) to prevent them from locking up during hidpp checks #3145 - format hex * Skip Logitech webcams from hidpp checks #3145 - local constant for LOGITECH_VENDOR_ID as per code review
This commit is contained in:
parent
75aadc706c
commit
310b3af76f
|
|
@ -38,6 +38,8 @@ from typing import Callable
|
||||||
|
|
||||||
from hidapi.common import DeviceInfo
|
from hidapi.common import DeviceInfo
|
||||||
|
|
||||||
|
LOGITECH_VENDOR_ID = 0x046D
|
||||||
|
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
import gi
|
import gi
|
||||||
|
|
||||||
|
|
@ -251,6 +253,12 @@ def _match(
|
||||||
logger.info(f"Skipping unlikely device {device['path']} ({bus_id}/{vid:04X}/{pid:04X})")
|
logger.info(f"Skipping unlikely device {device['path']} ({bus_id}/{vid:04X}/{pid:04X})")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
# 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:
|
||||||
|
logger.info(f"Skipping Logitech webcam {device['path']} ({bus_id}/{vid:04X}/{pid:04X})")
|
||||||
|
return None
|
||||||
|
|
||||||
# Check for hidpp support
|
# Check for hidpp support
|
||||||
device["hidpp_short"] = False
|
device["hidpp_short"] = False
|
||||||
device["hidpp_long"] = False
|
device["hidpp_long"] = False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue