芯跳模块改为电容改为使用任务12
app编译后自动上传到服务器
This commit is contained in:
@@ -197,22 +197,22 @@ uint8_t coder_judge(const uint8_t *data)
|
||||
}
|
||||
|
||||
// 检测电容
|
||||
TASK_FIND_NEXT(8);
|
||||
TASK_FIND_NEXT(12);
|
||||
temp=TASK_DATA(0);
|
||||
if((temp>task->range[0].max)||(temp<task->range[0].min))
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
temp=TASK_DATA(1);
|
||||
if((temp>task->range[1].max)||(temp<task->range[1].min))
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
temp=TASK_DATA(2);
|
||||
if((temp>task->range[2].max)||(temp<task->range[2].min))
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
// temp=TASK_DATA(1);
|
||||
// if((temp>task->range[1].max)||(temp<task->range[1].min))
|
||||
// {
|
||||
// return 2;
|
||||
// }
|
||||
// temp=TASK_DATA(2);
|
||||
// if((temp>task->range[2].max)||(temp<task->range[2].min))
|
||||
// {
|
||||
// return 2;
|
||||
// }
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user