解决任务重试会导致返回数据长度增加的问题

修改jwt读取空闲判线算法以自适应返回电流挡位,未验证
This commit is contained in:
andy
2023-10-09 23:01:28 +08:00
parent aa8d493581
commit 2d3fcf045f
6 changed files with 65 additions and 54 deletions

View File

@@ -196,7 +196,7 @@ static void elec_load_scheme(void)
array_def *elec_check_with_scheme(array_def *uid_psw)
{
self_def *s=&g_self;
const uint8_t* ptaskindex = (uint8_t*)(APP_TEST_PLAN_ADDR+4);
const uint8_t* taskid_table = (uint8_t*)(APP_TEST_PLAN_ADDR+4);
CheckerTask *tasks_fun_table[]={jqtaskArray,xttaskArray,ewtaskArray};
CheckerTask_Info_st *task_par=0;
uint8_t chip_type=0;
@@ -219,9 +219,9 @@ array_def *elec_check_with_scheme(array_def *uid_psw)
int task_index=0;
int err_flag=0;
LED1_Out_Off;
while((ptaskindex[task_index]!=0xff)&&(task_index<PLAN_MAX_TASK)){
while((taskid_table[task_index]!=0xff)&&(task_index<PLAN_MAX_TASK)){
memset(&checker_runcfg.task_info,0,sizeof(CheckerTask_Info_st));
taskid=ptaskindex[task_index];
taskid=taskid_table[task_index];
memset(checker_runcfg.params,0,20);
checker_runcfg.param_count = 0;//参数个数
checker_runcfg.rtv_count = 0;//返回值个数
@@ -256,6 +256,7 @@ array_def *elec_check_with_scheme(array_def *uid_psw)
Checker_Excueindex(task_index);
if(checker_runcfg.excue_rtv==0)
break;
checker_runcfg.rtv_index-=checker_runcfg.rtv_count;
}
// 找寻下一个任务