Backup.
This commit is contained in:
parent
aec1448c3e
commit
52949309db
|
@ -126,6 +126,8 @@ void Strg_CB(UINT32 event, UINT32 param1, UINT32 param2)
|
|||
switch (status) {
|
||||
case FST_STA_OK:
|
||||
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;
|
||||
case FST_STA_DISK_UNFORMAT:
|
||||
DBG_MSG("^Rcard-%d mount FAIL: Unformat\r\n", param1 + 1);
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "UIWnd/LVGL_SPORTCAM/UIInfo/UIInfo.h"
|
||||
#include "UIFlowLVGL/UIFlowWrnMsg/UIFlowWrnMsgAPI.h"
|
||||
#include "UIFlowLVGL/UIFlowMenuCommonConfirm/UIFlowMenuCommonConfirmAPI.h"
|
||||
#include "kwrap/nvt_type.h"
|
||||
|
||||
#if (USE_DCF == ENABLE)
|
||||
#include "DCF.h"
|
||||
|
@ -2083,8 +2084,23 @@ static void UIFlowPlay_NVTMSG(lv_obj_t* obj, const LV_USER_EVENT_NVTMSG_DATA* ms
|
|||
break;
|
||||
}
|
||||
|
||||
case NVTEVT_STORAGE_CHANGE:
|
||||
// case NVTEVT_STORAGE_CHANGE:
|
||||
case NVTEVT_STRG_REMOVE:
|
||||
{
|
||||
printf("=============================== NVTEVT_STRG_REMOVE\n");
|
||||
if (!g_bUIFlowWndPlayNoImgWndOpened)
|
||||
{
|
||||
PBView_DrawNoFile();
|
||||
g_bUIFlowWndPlayNoImgWndOpened = TRUE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case NVTEVT_STRG_MOUNT_OK:
|
||||
{
|
||||
printf("=============================== NVTEVT_STRG_MOUNT_OK\n");
|
||||
g_bUIFlowWndPlayNoImgWndOpened = FALSE;
|
||||
UIFlowPlay_OpenFile(obj);
|
||||
break;
|
||||
UIFlowPlay_StorageChange(obj,msg);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ typedef enum {
|
|||
NVTEVT_STRG_DETACH = 0x11010002, //Param1=storage id, Param2=status
|
||||
NVTEVT_STRG_ATTACH = 0x11010003, //Param1=storage id, Param2=status
|
||||
NVTEVT_STRG_CHANGE = 0x11010004, //Param1=storage id, if insert / remove occurs, also indicate change flag
|
||||
NVTEVT_STRG_MOUNT_OK = 0x11010005,
|
||||
/* INSERT NEW EVENT HRER */
|
||||
NVTEVT_STRG_EVT_END = DEV_STRG_EVENT_BASE + 0x1000 - 1, ///< Max value = 0x11010fff
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user