From de1a6633af5feb1428a109ac223d375aed6c6b48 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Fri, 15 Sep 2023 09:32:27 +0800 Subject: [PATCH] =?UTF-8?q?upSendFile=5Fthread=5Fentry=20=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=9B=B4=E6=96=B0=EF=BC=8C=E5=8F=91=E9=80=81=E5=89=8D?= =?UTF-8?q?=E5=88=A4=E6=96=ADTT=E7=8A=B6=E6=80=81=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E4=B8=B4=E6=97=B6=E6=8E=89=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/core.c b/applications/core.c index 39ab175..2e65c95 100644 --- a/applications/core.c +++ b/applications/core.c @@ -469,12 +469,13 @@ static void upSendFile_thread_entry(void *parameter) { if (!f->index || (var+1) == f->index) { //index=0 全发,或者仅发index - if (sendMsg(d[var], s[var]) == RT_EOK) { + if (isTTjh() && sendMsg(d[var], s[var]) == RT_EOK) { LOG_D("send pack[%d] with %d bytes done.",var+1,s[var]); } else { + LOG_E("TT未到位或发送失败"); issendall=0; - break; +// break; } rt_thread_mdelay(3000);//发送间隔,目前服务器未处理,暂设为3s避免粘包 }