Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit f68847b

Browse files
committed
Use hidraw backend if available.
1 parent 740c9d5 commit f68847b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

u2flib_host/hid_transport.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
# POSSIBILITY OF SUCH DAMAGE.
2727

2828
import os
29-
import hid
29+
try:
30+
import hidraw as hid # Prefer hidraw
31+
except ImportError:
32+
import hid
3033
from time import time
3134
from u2flib_host.device import U2FDevice
3235
from u2flib_host import exc

0 commit comments

Comments
 (0)