From edb8c2605b872c432c2c9b9b04af1d9b8e5ee44f Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 21 Dec 2024 19:14:52 +0800 Subject: [PATCH] =?utf8?q?=E5=85=B3=E9=97=AD=E6=8A=95=E7=A5=A8=E6=89=93?= =?utf8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/application/brandy/brandy_standard/thread_init.c | 5 +++++ code/sdk/drivers/peripheral/utils/custom_utils.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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]); } } -- 2.17.1