Fixed bug number 10214.

This commit is contained in:
xiaojiazhu 2023-12-05 10:02:03 +08:00
parent 6defbcaf60
commit 3f8febd903
3 changed files with 5 additions and 4 deletions

View File

@ -126,8 +126,6 @@ void Strg_CB(UINT32 event, UINT32 param1, UINT32 param2)
switch (status) { switch (status) {
case FST_STA_OK: case FST_STA_OK:
DBG_MSG("card-%d mount OK\r\n", param1 + 1); DBG_MSG("card-%d mount OK\r\n", param1 + 1);
printf("===============ddddddddddddddddddd FST_STA_OK\n");
Ux_PostEvent(NVTEVT_STRG_MOUNT_OK, 2, param1, status);
break; break;
case FST_STA_DISK_UNFORMAT: case FST_STA_DISK_UNFORMAT:
DBG_MSG("^Rcard-%d mount FAIL: Unformat\r\n", param1 + 1); DBG_MSG("^Rcard-%d mount FAIL: Unformat\r\n", param1 + 1);

View File

@ -1006,6 +1006,7 @@ INT32 System_OnStrgAttach(VControl *pCtrl, UINT32 paramNum, UINT32 *paramArray)
stMessageBuf.arg3 = FST_STA_OK; stMessageBuf.arg3 = FST_STA_OK;
stMessageBuf.cmdId = CMD_SD; stMessageBuf.cmdId = CMD_SD;
sf_com_message_send_to_app(&stMessageBuf); sf_com_message_send_to_app(&stMessageBuf);
Ux_PostEvent(NVTEVT_STRG_MOUNT_OK, 0);
} }
#endif #endif
#endif #endif

View File

@ -2087,17 +2087,19 @@ static void UIFlowPlay_NVTMSG(lv_obj_t* obj, const LV_USER_EVENT_NVTMSG_DATA* ms
// case NVTEVT_STORAGE_CHANGE: // case NVTEVT_STORAGE_CHANGE:
case NVTEVT_STRG_REMOVE: case NVTEVT_STRG_REMOVE:
{ {
printf("=============================== NVTEVT_STRG_REMOVE\n");
if (!g_bUIFlowWndPlayNoImgWndOpened) if (!g_bUIFlowWndPlayNoImgWndOpened)
{ {
PBView_DrawNoFile(); PBView_DrawNoFile();
g_bUIFlowWndPlayNoImgWndOpened = TRUE; g_bUIFlowWndPlayNoImgWndOpened = TRUE;
} }
UIFlowPlay_Exit(obj);
break; break;
} }
case NVTEVT_STRG_MOUNT_OK: case NVTEVT_STRG_MOUNT_OK:
{ {
printf("=============================== NVTEVT_STRG_MOUNT_OK\n"); UIPlay_PlaySingle(PB_SINGLE_CURR);
g_PlbData.State = PLB_ST_FULL;
update_playicons(g_PlbData.State);
g_bUIFlowWndPlayNoImgWndOpened = FALSE; g_bUIFlowWndPlayNoImgWndOpened = FALSE;
UIFlowPlay_OpenFile(obj); UIFlowPlay_OpenFile(obj);
break; break;