Fixed bug about settings.
This commit is contained in:
parent
37aff7d963
commit
1f02d965c0
|
@ -1,6 +1,7 @@
|
|||
// #include "MenuQR.h"
|
||||
#include "PrjInc.h"
|
||||
#include "UIFlowLVGL/UIFlowMenuCommonItem/TabMenu.h"
|
||||
#include "UIInfo/UIInfo.h"
|
||||
#include "UIWnd/UIFlow.h"
|
||||
#include "sf_systemMng.h"
|
||||
|
||||
|
@ -133,10 +134,12 @@ int General_MenuCallback(UINT32 uiMessage, UINT32 uiParam)
|
|||
}
|
||||
case IDM_DELAY:
|
||||
{
|
||||
puiPara->PirDelaySwitch = uwOption == 0 ? SF_OFF : SF_ON;
|
||||
break;
|
||||
}
|
||||
case IDM_OPERATING_TIME:
|
||||
{
|
||||
puiPara->WorkTime1Switch = uwOption == 0 ? SF_OFF : SF_ON;
|
||||
break;
|
||||
}
|
||||
case IDM_FORMAT_SD:
|
||||
|
@ -407,7 +410,7 @@ void show_Delay_page(lv_obj_t* obj)
|
|||
init_Matrix_style();
|
||||
|
||||
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
||||
if(!puiPara->PirDelaySwitch)
|
||||
// if(!puiPara->PirDelaySwitch)
|
||||
{
|
||||
puiPara->PirDelayTime.Hour = 0;
|
||||
puiPara->PirDelayTime.Min = 0;
|
||||
|
@ -569,7 +572,7 @@ void show_Operating_Time_page(lv_obj_t* obj)
|
|||
init_Matrix_style();
|
||||
|
||||
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
||||
if(!puiPara->WorkTime1Switch)
|
||||
// if(!puiPara->WorkTime1Switch)
|
||||
{
|
||||
puiPara->WorkTime[0].StartTime.Hour = 0;
|
||||
puiPara->WorkTime[0].StartTime.Min = 0;
|
||||
|
|
|
@ -71,6 +71,8 @@ int Qr_MenuCallback(UINT32 uiMessage, UINT32 uiParam)
|
|||
}
|
||||
case IDM_CAMERA_NAME:
|
||||
{
|
||||
// puiPara->CamNameSwitch
|
||||
puiPara->CamNameSwitch = uwOption == 0 ? SF_CAMID_OFF : SF_CAMID_ON;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -61,6 +61,8 @@ int Send_MenuCallback(UINT32 uiMessage, UINT32 uiParam)
|
|||
{
|
||||
case IDM_MAX_NUM_DAY:
|
||||
{
|
||||
#define SEND_MAX_NUM_UNLIMITED 0
|
||||
puiPara->SendMaxNum = SEND_MAX_NUM_UNLIMITED;
|
||||
printf("\033[33m[Send_MenuCallback]SendMaxNum:%d\033[0m\n", puiPara->SendMaxNum);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user