From: penglei <1624952103@qq.com> Date: Mon, 25 Nov 2024 07:40:45 +0000 (+0800) Subject: 优化睡眠清除历史数据 X-Git-Tag: fd230_release_V1.3.102~21^2~7 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1462%2F1;p=mirrors%2FFD230.git 优化睡眠清除历史数据 --- diff --git a/code/sdk/drivers/peripheral/cywee/src/main_dml.c b/code/sdk/drivers/peripheral/cywee/src/main_dml.c index abafaf521..a6a9d42e0 100644 --- a/code/sdk/drivers/peripheral/cywee/src/main_dml.c +++ b/code/sdk/drivers/peripheral/cywee/src/main_dml.c @@ -182,7 +182,7 @@ void clean_sleep_data(void) wake_up_timestamp = 0; abs_static_timestampe = 0; asleep_timestampe = 0; - memset(&sleep_stat,0,SLEEP_STATUS_LENGTH * sizeof(SLEEP_STAT_T)); + memset(sleep_stat,0,SLEEP_STATUS_LENGTH * sizeof(SLEEP_STAT_T)); memset(time_file_path, 0, sizeof(time_file_path)); memset(status_file_path, 0, sizeof(status_file_path)); memset(dir_path, 0, sizeof(dir_path));