广播命令时静默

This commit is contained in:
ranchuan
2023-11-15 18:11:39 +08:00
parent 1708b9ce6a
commit 83e6717fe8
12 changed files with 136 additions and 16 deletions

View File

@@ -118,8 +118,14 @@ static void elec_current(elec_judge_def *e,int index,uint8_t *data)
uint16_t temp,temp2;
uint16_t short_c=e->short_circuited;
uint16_t open_c=e->open_circuited;
DBG_LOG("task index=%d.",index);
if(EXE_ACK_CHECK(index)){
elec_add_errcode(e,task->err);
DBG_WARN("task execute err:%d.",task->err);
}
temp=GET_RET_DATA(0);
temp2=GET_RET_DATA(1);
DBG_LOG("task curr1:%d,curr2:%d",temp,temp2);
if((temp<open_c)&&(temp2<open_c))
{
// 接触异常
@@ -243,9 +249,9 @@ const static elec_judge_fun g_ew_judge_table[]={
elec_task_judge, //0 电源准备
elec_task_judge, //1 上电充能
elec_task_judge, //2 设置总线电压
elec_current, //3 获取总线电流
elec_task_judge, //4 扫描UID
elec_task_judge, //5 写配置参数
elec_task_judge, //3 扫描UID
elec_task_judge, //4 写配置参数
elec_current, //5 获取总线电流
elec_task_judge, //6 验证配置
elec_task_judge, //7 模拟注码
elec_task_judge, //8 充能统计