Parcourir la source

版本号:2.0.1.5,暂时性修复调试信息过大问题

CHENJIE-PC\QiXiang_CHENJIE il y a 3 ans
Parent
commit
a9012c6a05
2 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 1 1
      inc/app.h
  2. 6 1
      src/TcpTask.c

+ 1 - 1
inc/app.h

@@ -45,7 +45,7 @@ extern "C" {
 #define	BLSWVERSION		0x01020000    //BootLoader版本号V1.2.0.0
 #define	DRVSWVERSION		0x01050000     //驱动层版本号V1.4.0.0  驱动层1.5.0.0,增加了三轴
 //#define	APPSWVERSION		0x01020209     
-#define	APPSWVERSION		0x02000104
+#define	APPSWVERSION		0x02000105
 //#define	APPSWVERSION		0x02010003
 //--------------------------------------------------------------------------------
 

+ 6 - 1
src/TcpTask.c

@@ -138,7 +138,7 @@ static void TcpTask(void* arg)
                     {
                         Error_count = 0;
                         #ifdef DEBUGLOG
-                            Debug_printf("Tcp Connect failed , systerm restart !\n");
+                            Debug_printf("404\n");
                         #endif
                         appSetCFUN(0);
                         osDelay(1000);
@@ -529,6 +529,11 @@ static void TcpDataInfoAssembleSend()
         UINT8 *SendBuffer = PNULL;
         UINT16 BufferLen = 0;
         BufferLen = Debug_GetSize();
+        if(BufferLen>200)
+        {
+            Debug_Del_Logfile();
+            return;
+        }
         UINT8 rbuf[BufferLen];
         #ifdef USING_PRINTF
             printf("BufferLen:%d!\n",BufferLen);