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避免粘包 }