earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
1.96k stars 406 forks source link

FatFSUSB plug() not invoked #2347

Open soundstorm opened 3 weeks ago

soundstorm commented 3 weeks ago

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 commented 2 weeks ago

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?

soundstorm commented 2 weeks ago

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?