I am using the below code to mount an SD card on startup.
while (!PersistentStorage.DetectSDCard()) System.Threading.Thread.Sleep(50); ps = new PersistentStorage("SD"); ps.MountFileSystem();
The issue I have is that, the line ps.MountFileSystem() will hang until i pause and then resume program execution. once i do this the SD card mounts and works fine.
What am I doing wrong?