Skip to content

Conversation

@samblenny
Copy link

This attempts to fix a problem where a Fruit Jam board crashes if you access the CIRCUITPY drive while code.py is rapidly polling a gamepad using usb.core.Device.read(). For details on the problem see

This fix is only marginally effective. It's still kinda crashy, but marginally less so than without the changes. I'm posting this here so people can poke at the code or try the CI build if they want.

This attempts to fix a problem where a Fruit Jam board crashes if
you access the CIRCUITPY drive while it's rapidly polling a gamepad
using usb.core.Device.read(). The fix is incomplete.
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

I don't want to do this. It is TinyUSB's job to ensure it is in a good state to handle a read() call.

@samblenny
Copy link
Author

Okay. Sounds reasonable. I'll leave this for you or Thach to sort out then.

@samblenny samblenny closed this Sep 10, 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