Skip to content

Commit b666b57

Browse files
committed
higher timeout value
1 parent 024885e commit b666b57

File tree

1 file changed

+2
-2
lines changed
  • USB_Host_Examples/CircuitPython_Mouse_Basic

1 file changed

+2
-2
lines changed

USB_Host_Examples/CircuitPython_Mouse_Basic/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
while True:
4949
try:
5050
# attempt to read data from the mouse
51-
# 10ms timeout, so we don't block long if there
51+
# 20ms timeout, so we don't block long if there
5252
# is no data
53-
count = mouse.read(0x81, buf, timeout=10)
53+
count = mouse.read(0x81, buf, timeout=20)
5454
except usb.core.USBTimeoutError:
5555
# skip the rest of the loop if there is no data
5656
continue

0 commit comments

Comments
 (0)