fix:优化定时任务值逻辑

fix:优化获取idx数据处理返回内容
fix:按键返回数据逻辑
del:删除多余的调试信息
This commit is contained in:
Zip
2019-03-15 16:31:41 +08:00
parent 9ac697f837
commit e4c6d14185
6 changed files with 31 additions and 22 deletions

View File

@@ -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;