自动清除UI历史睡眠时间戳 3054/1 3054/head 3068/target/1
authorpenglei <1624952103@qq.com>
Thu, 8 Jan 2026 09:57:01 +0000 (17:57 +0800)
committerpenglei <1624952103@qq.com>
Thu, 8 Jan 2026 09:57:01 +0000 (17:57 +0800)
code/sdk/zhihui/drivers/cywee/dml/cywee_dml.c

index e20c5c5..115a91f 100644 (file)
@@ -343,6 +343,9 @@ static void clean_sleep_data(void)
     memset(status_file_path, 0, sizeof(status_file_path));
     memset(dir_path, 0, sizeof(dir_path));
     memset(nap_file_path, 0, sizeof(nap_file_path));
+    memset(&ui_nap_data, 0, sizeof(ui_nap_data));
+    memset(&ui_sleep_data, 0, sizeof(ui_nap_data));
+
     wake_up_flag = 0;
 }