mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
fix:优化定时任务值逻辑
fix:优化获取idx数据处理返回内容 fix:按键返回数据逻辑 del:删除多余的调试信息
This commit is contained in:
@@ -161,11 +161,11 @@ void rtc_thread( mico_thread_arg_t arg )
|
||||
if ( //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1>̵<EFBFBD><CCB5><EFBFBD>״̬: <20><>Ϊ0 ʱ<>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>趨ֵ, <20>ظ<EFBFBD><D8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>趨ֵ
|
||||
rtc_time.sec == 0 && rtc_time.min == user_config->plug[i].task[j].minute
|
||||
&& rtc_time.hr == user_config->plug[i].task[j].hour
|
||||
&& ((repeat == 0x80) || repeat & (1 << (rtc_time.weekday - 1)))
|
||||
&& ((repeat == 0x00) || repeat & (1 << (rtc_time.weekday - 1)))
|
||||
)
|
||||
{
|
||||
user_relay_set( i, user_config->plug[i].task[j].action );
|
||||
if ( repeat == 0x80 )
|
||||
if ( repeat == 0x00 )
|
||||
{
|
||||
user_config->plug[i].task[j].on = 0;
|
||||
update_user_config_flag = 1;
|
||||
|
||||
Reference in New Issue
Block a user