Fixed bug about rtc time.
This commit is contained in:
parent
55ff409a05
commit
0bad53d7ee
|
@ -4,6 +4,8 @@
|
|||
#include "UIInfo/UIInfo.h"
|
||||
#include "UIWnd/UIFlow.h"
|
||||
#include "sf_systemMng.h"
|
||||
// #include "sf_commu_mcu_reg.h"
|
||||
#include "sf_common.h"
|
||||
|
||||
TMDEF_BEGIN_OPTIONS(CAMERA_MODE)
|
||||
TMDEF_OPTION_TEXT_S(CAMERA_MODE_PHOTO, TM_OPTION_ENABLE)
|
||||
|
@ -929,6 +931,9 @@ void Option_DateTime_Key(lv_obj_t* obj, uint32_t key)
|
|||
printf("\033[33m[Option_DateTime_Key]SELECT\033[0m\n");
|
||||
puiPara->DateAuto = SF_DATE_MANUAL;
|
||||
sf_sys_rtc_time_set(&gDateTime);
|
||||
system("hwclock -s");
|
||||
// sf_set_mcu_rtc_flag(1);
|
||||
sf_cardv_set_mcu_rtc_flag();
|
||||
lv_plugin_scr_close(obj, gen_nvtmsg_data(NVTRET_ENTER_MENU, 0));
|
||||
hidde_DateTime_page();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user