We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 82fefa5 + 4da2d77 commit 59f2c58Copy full SHA for 59f2c58
1 file changed
source/brailleDisplayDrivers/brailliantB.py
@@ -35,6 +35,7 @@
35
HR_KEYS = b"\x04"
36
HR_BRAILLE = b"\x05"
37
HR_POWEROFF = b"\x07"
38
+HID_USAGE_PAGE = 0x93
39
40
KEY_NAMES = {
41
1: "power", # Brailliant BI 32, 40 and 80.
@@ -147,6 +148,9 @@ def __init__(self, port="auto"):
147
148
# Try talking to the display.
149
try:
150
if self.isHid:
151
+ if (usasePage := portInfo.get("HIDUsagePage")) != HID_USAGE_PAGE:
152
+ log.debugWarning(f"Ignoring device {port!r} with usage page {usasePage!r}")
153
+ continue
154
self._dev = hwIo.Hid(port, onReceive=self._hidOnReceive)
155
else:
156
self._dev = hwIo.Serial(
0 commit comments