From d2fa357d67df00f90bfb8e8a6e315a75b1bb0ce0 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Sun, 10 Sep 2023 16:02:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A4=8D=E4=BD=8DisFileMode?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=97=A0?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=96=87=E4=BB=B6=E6=97=B6=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=A4=8D=E4=BD=8D=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/applications/core.c b/applications/core.c index d2982bd..e50e4c3 100644 --- a/applications/core.c +++ b/applications/core.c @@ -474,8 +474,6 @@ static void upSendFile_thread_entry(void *parameter) */ void upSendFile(const char *f, int index) { - resetTM(); - isFileMode=0;//逻辑不是很准确 static FILE_INFO info; rt_memset(&info, 0, sizeof(FILE_INFO)); strcpy(info.fname, f); @@ -508,7 +506,8 @@ void d_upSendFile(int argc, char **argv) */ void getAndSendFile() { - + resetTM(); + isFileMode=0;//逻辑不是很准确 //优先发送未达指定大小的文件 char fnow[50]; getLstCacheFileName(fnow);