1.格式化成功后直接创建DCIM目录

This commit is contained in:
payton 2024-01-03 20:35:17 +08:00
parent ffc4f18fec
commit f864680e6f
2 changed files with 8 additions and 0 deletions

View File

@ -981,6 +981,8 @@
#define SF_SD_LOG_INFO_FILENAME "/tmp/SD.txt" #define SF_SD_LOG_INFO_FILENAME "/tmp/SD.txt"
#define SF_4G_MODE_TEST DISABLE #define SF_4G_MODE_TEST DISABLE
#define SF_DCIM_PATH ":\\DCIM\\"
//////////////////////sf end/////////////////////////////// //////////////////////sf end///////////////////////////////
/******************************************************************************************* /*******************************************************************************************

View File

@ -922,6 +922,9 @@ UINT32 BackgroundFormatEmmc(void)
{ {
LogFile_ReOpen(); LogFile_ReOpen();
} }
char tmp[32] = {'\0'};
snprintf(tmp, sizeof(tmp), "B%s", SF_DCIM_PATH); /* DCF 8.3 naming rule */
FileSys_MakeDir(tmp);
#else #else
LogFile_ReOpen(); LogFile_ReOpen();
#endif #endif
@ -1021,6 +1024,9 @@ UINT32 BackgroundFormatCard(void)
{ {
LogFile_ReOpen(); LogFile_ReOpen();
} }
char tmp[32] = {'\0'};
snprintf(tmp, sizeof(tmp), "A%s", SF_DCIM_PATH); /* DCF 8.3 naming rule */
FileSys_MakeDir(tmp);
#else #else
LogFile_ReOpen(); LogFile_ReOpen();
#endif #endif