wwatson4506 / UsbMscFat

Teensy 36/40/41 Compatiblility Layer for MSC and SdFat
MIT License
9 stars 3 forks source link

Cache UsedSize - some drives take a LONG time #2

Closed KurtE closed 3 years ago

KurtE commented 3 years ago

Working with MTP - calling this at wrong time can time out the connection, so trying to handle the startup time, where before I add the drive I call this, which may take several seconds and then tell MTP to add the drive, which when the host asks for drive info, it does not delay giving the data to the host...

See what you think about caching the data like this?

It does help MTP startup with larger drives

wwatson4506 commented 3 years ago

Kurte, Performed pull request.