The sdcard is always busy after call refreshFileList
daoxuanquan opened this issue · 7 comments
The sdcard was always busy after i called DemoComponentHelper.fetchCamera()?.mediaManager?.refreshFileList. I have tried to exit the playback mode by called exitPlayback() method and set the mode to shootPhoto but it seem not helpful. Because the sd card was busy so it unable to shoot photo either. I also tried on DJISdkDemo and got the same issues.
The steps for reproduce.
call method refreshFileList -> call shoot photo. (or check the sdcard by calling remainingSpaceInMB in DJICameraStorageState and see it return 0) -> got messages "Captured image failed because the sdcard is busy or the current mode not supported"
If you know how to take a picture affter calling refreshFileList, please point me out.
- Call enterPlayback to change the camera mode to the media download mode.
- After calling the refreshFileListWithCompletion, you need to check the DJIMediaFileListState. It should be DJIMediaFileListStateUpToDate.
- Call exitPlayback to exit the media download mode.
- Call setFlatMode:withCompletion to change your camera mode to DJIFlatCameraModePhotoSingle and take photos.
Which aircraft and camera you are using? Have you set the storage location correctly?
I'm using mavic air 2. I seem like only happened when have a lot of image in sd card > 200. I also check the DJIMediaFileListState, and it's DJIMediaFileListStateUpToDate but the sdcard still busy.
I think so. Because everything is Ok if i not call refreshFileListWithCompletion
You are correct, it seems like the Mavic Air 2 has this kind of feature. Please send an email to support@dji.com asking how to disable this feature.