关闭投票打印 1549/target/2 1552/1 1552/head
authorluozheng <1732036298@qq.com>
Sat, 21 Dec 2024 11:14:52 +0000 (19:14 +0800)
committerluozheng <1732036298@qq.com>
Sat, 21 Dec 2024 11:14:52 +0000 (19:14 +0800)
code/sdk/application/brandy/brandy_standard/thread_init.c
code/sdk/drivers/peripheral/utils/custom_utils.c

index 60df801..83b48fa 100755 (executable)
@@ -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
index 7174498..e42eea7 100644 (file)
@@ -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]);  
         }  
     }