From e6e46bdf390f534db0857e31ccc6c90b140366f4 Mon Sep 17 00:00:00 2001 From: oopuuu <75833466+oopuuu@users.noreply.github.com> Date: Thu, 13 Mar 2025 09:04:56 +0800 Subject: [PATCH] Update main.c --- TC1/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TC1/main.c b/TC1/main.c index 617fe1e..b495185 100644 --- a/TC1/main.c +++ b/TC1/main.c @@ -55,6 +55,7 @@ void appRestoreDefault_callback(void *const user_config_data, uint32_t size) { } void recordDailyPCount() { + tc1_log("WARNGIN: enter recordDailyPCount! "); // 获取当前时间 time_t now; time(&now); @@ -67,6 +68,8 @@ void recordDailyPCount() { if (current_time->tm_year != last_check_time_tm->tm_year || current_time->tm_mon != last_check_time_tm->tm_mon || current_time->tm_mday != last_check_time_tm->tm_mday) { + + tc1_log("WARNGIN: pcount day changed! "); // 记录数据 if (user_config->p_count_1_day_ago != 0) { user_config->p_count_2_days_ago = user_config->p_count_1_day_ago; @@ -81,6 +84,7 @@ void recordDailyPCount() { } } + tc1_log("WARNGIN: pcount day not changed , waiting for next run! "); // 更新上次检查时间 last_check_time = now;