hid hid_get_input_report workarounds
This commit is contained in:
parent
a43d225fae
commit
8e18f4d0fd
1 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
|||
# Copyright 2022 QMK
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
import hid
|
||||
import json
|
||||
import time
|
||||
import gzip
|
||||
|
|
@ -40,6 +39,9 @@ class XAPDeviceBase:
|
|||
self.timeout = timeout
|
||||
self.running = True
|
||||
|
||||
# lazy import to avoid compile issues
|
||||
import hid
|
||||
|
||||
self.dev = hid.Device(path=dev['path'])
|
||||
|
||||
self.bg = threading.Thread(target=self._read_loop, daemon=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue