Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FatFSUSB plug() not invoked #2347

Closed
soundstorm opened this issue Aug 22, 2024 · 4 comments
Closed

FatFSUSB plug() not invoked #2347

soundstorm opened this issue Aug 22, 2024 · 4 comments
Labels
waiting for feedback Requires response from original poster

Comments

@soundstorm
Copy link

I've tried to use the Listfiles-USB sketch from the examples, works quite well. Except the plug()-callback is not invoked.
Tried to print the driveConnected in the loop, but always reports 0. I've tried to implement a isConnected() method, based on a _isConnected variable, that should change within the plug() and unplug() methods withing FatFSUSB, but sadly not only the callback is not called, neither the main plug() method.

@earlephilhower
Copy link
Owner

Without an MCVE that reproduces the problem, there's really not much anyone can do. Can you provide a small, complete example showing the problem?

@earlephilhower earlephilhower added the waiting for feedback Requires response from original poster label Aug 22, 2024
@soundstorm
Copy link
Author

I've just used the Listfiles-USB sketch and added a Serial.println(driveConnected); every second to the main loop, which always yields 0. Using a regular Pi Pico.
What further information do you need?

@soundstorm
Copy link
Author

Was there any change in the code or just closed?

@earlephilhower
Copy link
Owner

FF had to restart after an update this morning and looks like it lost the message, sorry. The TinyUSB call is registered and does get called on my Ubuntu install, but depending on the state of the moon Windows may or may not actually send the USB packet that TUSB is looking for on mounting. So this is out of the core's hands, but it's hooked into the proper frameworks. There might be something you could push upstream to TInyUSB, but they're really just a thin wrapper as well...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for feedback Requires response from original poster
Projects
None yet
Development

No branches or pull requests

2 participants