Prechádzať zdrojové kódy

平峰Release-V0.0.1.6

LAPTOP-KB7QFH2U\ChenJie-PC 2 rokov pred
rodič
commit
05f9463507
2 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 3 3
      code/app/AppGlobalVar.c
  2. 1 1
      code/app/AppTaskUart1.c

+ 3 - 3
code/app/AppGlobalVar.c

@@ -15,7 +15,7 @@
  *      Author: QiXiang_CHENJIE
  */
 #include "AppGlobalVar.h"
-//#define APP_RELEASE
+#define APP_RELEASE
 #ifdef APP_RELEASE
 const char WebSiteName[] = "\"iotp.fast-fun.cn\"";
 uint16 WebSitePort = 8712;
@@ -25,7 +25,7 @@ uint16 WebSitePort = 8812;
 #endif
 
 #define defaultSn "SPFPFL264S226D001"
-const uint32 AppSwVersion = 0x00000105;
+const uint32 AppSwVersion = 0x00000106;
 
 const uint8 DataModuleType = 0x02;//01=NB,02-4G
 const uint16 HwVersion = 0x001;
@@ -60,7 +60,7 @@ uint8 TcpWorkState = 0;
 
 #define EEP_START_SEC_VAR_INIT_8_NO_CACHEABLE
 #include "Eep_MemMap.h"
-AppConfigBody AppConfigInfo = {false, true, {defaultSn}, {0}};
+AppConfigBody AppConfigInfo = {false, false, {defaultSn}, {0}};
 #define EEP_STOP_SEC_VAR_INIT_8_NO_CACHEABLE
 #include "Eep_MemMap.h"
 

+ 1 - 1
code/app/AppTaskUart1.c

@@ -730,7 +730,7 @@ void TcpDataEncode(uint32 *PtrSendAddr, uint16 *SendLen)
 	static UTC8TimeType UTC8TimeTcp;
 	uint8 *SendBuffer = NULL;
 	uint8 DataIdx = 0;
-	if (TcpSendTimeCounter == 5)
+	if (TcpSendTimeCounter % (60*60)== 0)
 	{
 		DataIdx = VerMsg; //版本信息发送
 	}