V2.10 添加写入固定延时任务

EW发送数据前固定50ms延时
    can总线发送采用等待的方式
This commit is contained in:
ranchuan
2023-12-22 19:05:19 +08:00
parent 6cf5e9e720
commit 5c2648d33c
9 changed files with 131 additions and 8 deletions

View File

@@ -311,7 +311,9 @@ static void protu_send_ontime(protu_def *p,send_pkt_def *s)
}
if(p->silent!=0){
// 广播命令在指定时间窗口发送
later_execute(protu_send_later,s,delay);
//later_execute(protu_send_later,s,delay);
while(p->timer->read(p->timer)<(tick+delay));
protu_send_later(s);
}else{
// 单播命令直接发送
protu_send_later(s);