mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-17 03:48:55 +00:00
修复首屏场景8及上电记忆
This commit is contained in:
@@ -482,6 +482,23 @@ void custom_init(lv_ui *ui)
|
||||
}
|
||||
//=======================================================================================
|
||||
#endif
|
||||
//取消上电标记
|
||||
if(GET_nvs_Sys_Info_relay1status()&relayfirst_powerflag)//看看是不是上电
|
||||
{//
|
||||
SET_nvs_Sys_Info_relay1status(GET_nvs_Sys_Info_relay1status()&(~relayfirst_powerflag));//取消上电标记
|
||||
}
|
||||
if(GET_nvs_Sys_Info_relay2status()&relayfirst_powerflag)//看看是不是上电
|
||||
{//
|
||||
SET_nvs_Sys_Info_relay2status(GET_nvs_Sys_Info_relay2status()&(~relayfirst_powerflag));//取消上电标记
|
||||
}
|
||||
if(GET_nvs_Sys_Info_relay3status()&relayfirst_powerflag)//看看是不是上电
|
||||
{//
|
||||
SET_nvs_Sys_Info_relay3status(GET_nvs_Sys_Info_relay3status()&(~relayfirst_powerflag));//取消上电标记
|
||||
}
|
||||
if(GET_nvs_Sys_Info_relay4status()&relayfirst_powerflag)//看看是不是上电
|
||||
{//
|
||||
SET_nvs_Sys_Info_relay4status(GET_nvs_Sys_Info_relay4status()&(~relayfirst_powerflag));//取消上电标记
|
||||
}
|
||||
nvs_eepom_sysInfo_update();
|
||||
}
|
||||
static void smartconfig_msgbox_callback(lv_event_t *event)
|
||||
@@ -1678,9 +1695,9 @@ void custom_Task(void *pvParameter)
|
||||
lv_label_set_text(guider_ui.scene_s7_label, Menu_List[GET_nvs_Sys_Info_language()][MENU_LIST_Scence23]);
|
||||
}
|
||||
}
|
||||
else if(evt.length==6)
|
||||
else if(evt.length==8)
|
||||
{
|
||||
if( strlen((const char*)nvs_SysInfo.scen_array[6].Label) )
|
||||
if( strlen((const char*)nvs_SysInfo.scen_array[7].Label) )
|
||||
{
|
||||
lv_label_set_text_fmt(guider_ui.scene_s8_label, "%s",nvs_SysInfo.scen_array[7].Label);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user