No sd card show.

This commit is contained in:
xiaojiazhu 2023-10-09 11:22:49 +08:00
parent ab8819cc89
commit 8103657b8e
2 changed files with 18 additions and 4 deletions

View File

@ -314,9 +314,16 @@ static void update_camera_message(void)
} }
UINT32 freePicNum = 0; UINT32 freePicNum = 0;
// PhotoExe_GetTotalPicNum(); // PhotoExe_GetTotalPicNum();
if (UIStorageCheck(STORAGE_CHECK_ERROR, NULL) == TRUE)
{
lv_label_set_text(label_6_scr_uiflowmovie, "NO SD CARD");
}
else
{
UIStorageCheck(STORAGE_CHECK_FULL, &freePicNum); UIStorageCheck(STORAGE_CHECK_FULL, &freePicNum);
lv_label_set_text(label_6_scr_uiflowmovie, Get_FreePicNumString(freePicNum)); lv_label_set_text(label_6_scr_uiflowmovie, Get_FreePicNumString(freePicNum));
} }
}
static void update_rec_time(void) static void update_rec_time(void)
{ {

View File

@ -409,9 +409,16 @@ static void update_camera_message(void)
default: default:
break; break;
} }
if (UIStorageCheck(STORAGE_CHECK_ERROR, NULL) == TRUE)
{
lv_label_set_text(label_6_scr_uiflowphoto, "NO SD CARD");
}
else
{
UIStorageCheck(STORAGE_CHECK_FULL, &g_uiFreePicNum); UIStorageCheck(STORAGE_CHECK_FULL, &g_uiFreePicNum);
lv_label_set_text(label_6_scr_uiflowphoto, Get_FreePicNumString(g_uiFreePicNum)); lv_label_set_text(label_6_scr_uiflowphoto, Get_FreePicNumString(g_uiFreePicNum));
} }
}
static void update_fd_frame(void) static void update_fd_frame(void)
{ {