Skip to content

Conversation

@RetiredWizard
Copy link
Contributor

The core is now raising a USBError when it can't locate a Vendor ID or Product ID which is causing applications to crash when a mouse is not found. This update allows applications that use the Adafruit_USB_Host_Mouse library to continue to operate as they did prior to the core update by catching the new errors and returning a value of None as the mouse object if there was an error.

@FoamyGuy @samblenny

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. This looks good to me.

At some point we could probably remove some of these prints or put them behind a verbose flag perhaps.

@FoamyGuy FoamyGuy merged commit 2512503 into adafruit:main Sep 18, 2025
1 check passed
@RetiredWizard RetiredWizard deleted the usbhostmouse branch September 18, 2025 14:32
adafruit-adabot pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants