From 054b0e9aac82a030cd544b925bbae8ad7419c4c4 Mon Sep 17 00:00:00 2001 From: payton Date: Wed, 29 Nov 2023 09:50:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8Ddate=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowLVGL.c | 2 +- .../UIFlowLVGL/UIFlowMenuCommonItem/MenuGeneral.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowLVGL.c b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowLVGL.c index 8cf2e1997..9ea07a006 100755 --- a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowLVGL.c +++ b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowLVGL.c @@ -1372,7 +1372,7 @@ void UIFlowLVGL(){ UIFlowMenuCommonOption = UIFlowMenuCommonOption_create(); UIFlowMenuCommonConfirm = UIFlowMenuCommonConfirm_create(); UIFlowWaitMoment = UIFlowWaitMoment_create(); - UIFlowSetupDateTime = UIFlowSetupDateTime_create(); + //UIFlowSetupDateTime = UIFlowSetupDateTime_create(); UIFlowPlayThumb = UIFlowPlayThumb_create(); UIFlowUSB = UIFlowUSB_create(); UIFlowUSBMenu = UIFlowUSBMenu_create(); diff --git a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowMenuCommonItem/MenuGeneral.c b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowMenuCommonItem/MenuGeneral.c index fd5f00646..6247c0f37 100644 --- a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowMenuCommonItem/MenuGeneral.c +++ b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIFlowLVGL/UIFlowMenuCommonItem/MenuGeneral.c @@ -1235,14 +1235,14 @@ void Option_DateTime_Key(lv_obj_t* obj, uint32_t key) case LV_USER_KEY_NEXT: if(DateTimeIndex == 0) { - if(gDateTime.Mon > 0 && gDateTime.Mon <= 12) + if(gDateTime.Mon > 1 && gDateTime.Mon <= 12) gDateTime.Mon--; else gDateTime.Mon = 12; } else if(DateTimeIndex == 2) { - if(gDateTime.Day > 0 && gDateTime.Day <= 31) + if(gDateTime.Day > 1 && gDateTime.Day <= 31) gDateTime.Day--; else gDateTime.Day = 31; @@ -1281,14 +1281,14 @@ void Option_DateTime_Key(lv_obj_t* obj, uint32_t key) if(DateTimeIndex == 0) { if(gDateTime.Mon >= 12) - gDateTime.Mon = 0; + gDateTime.Mon = 1; else gDateTime.Mon++; } else if(DateTimeIndex == 2) { if(gDateTime.Day >= 31) - gDateTime.Day = 0; + gDateTime.Day = 1; else gDateTime.Day++; }