添加错误代码

This commit is contained in:
ranchuan
2023-06-28 18:08:38 +08:00
parent c2b79fe523
commit 28889fa479
21 changed files with 2299 additions and 99 deletions

View File

@@ -116,6 +116,9 @@ void tran_recv_slot(tran_def *t,const char *codec_name,uint8_t cmd,array_def *da
DBG_LOG("tran init");
if(tran_get_busy(tr)){
DBG_WARN("ucport is busy.");
array_def *d=arr_creat();
arr_append(d,TRAN_ERR_BUSY);
emit tran_send_signal(tr,cmd,arr_temp(d));
return;
}
CHECK_DO(tr->u,tr->u->del);