-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Description
On some hosts (reported on a Windows 10 machine), main.py can start before the HID devices are ready on the host side. Examples:
https://forums.adafruit.com/viewtopic.php?f=52&t=125560#p629406
https://forums.adafruit.com/viewtopic.php?f=52&t=130143
Also reported in Discord (thanks @PhunkMaster)
I added time.sleep(1) to some of the HID examples (e.g., https://learn.adafruit.com/adafruit-circuit-playground-express?view=all#circuitpython-hid-keyboard), but this should really be handled in the library or possibly in the native implementation. The creation operations like Mouse() and Keyboard() could sleep and retry after failure, possibly just once.
Metadata
Metadata
Assignees
Labels
No labels