From: luozheng <1732036298@qq.com> Date: Sat, 21 Dec 2024 11:14:52 +0000 (+0800) Subject: 关闭投票打印 X-Git-Tag: v1.3.113-repair_tp~120^2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1552%2Fhead;p=mirrors%2FFD230.git 关闭投票打印 --- diff --git a/code/sdk/application/brandy/brandy_standard/thread_init.c b/code/sdk/application/brandy/brandy_standard/thread_init.c index 60df8015b..83b48fa8d 100755 --- a/code/sdk/application/brandy/brandy_standard/thread_init.c +++ b/code/sdk/application/brandy/brandy_standard/thread_init.c @@ -326,6 +326,11 @@ static void print_system_sleep_info(void) last_sys_slp=sys_slp; } + + if((last_sys_slp==0 && sys_slp==0) || (last_m_core_sleep && m_core_sleep==0) ) + { + get_save_runtime_vote_status(); + } // uapi_save_runtime_log(RUNTIME_LOG_lOW_POWER_MIN|sleep_info->sleep_veto.last_veto_id); #endif diff --git a/code/sdk/drivers/peripheral/utils/custom_utils.c b/code/sdk/drivers/peripheral/utils/custom_utils.c index 7174498e6..e42eea79f 100644 --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/code/sdk/drivers/peripheral/utils/custom_utils.c @@ -1378,7 +1378,7 @@ int get_save_runtime_vote_status(void) uint8_t flag = 0; pm_veto_t* pm_veto_ptr = pm_veto_get_info(); - PRINT("***************get_vote_status***************\n"); + // PRINT("***************get_vote_status***************\n"); for (i = 0; i < PM_ID_MAX; i++) { if (pm_veto_ptr->veto_counts.sub_counts[i]) { @@ -1386,7 +1386,7 @@ int get_save_runtime_vote_status(void) uapi_save_runtime_log(i|RUNTIME_LOG_VOTE_ID); } else { - PRINT("vote_status: %s %d\n", get_pm_id_name(i), pm_veto_ptr->veto_counts.sub_counts[i]); + // PRINT("vote_status: %s %d\n", get_pm_id_name(i), pm_veto_ptr->veto_counts.sub_counts[i]); } }