Browse Source

V0.2.0.9 GPS测试更改

LAPTOP-KB7QFH2U\ChenJie-PC 1 year ago
parent
commit
1095daa169
2 changed files with 2 additions and 2 deletions
  1. 1 1
      code/app/AppGlobalVar.c
  2. 1 1
      code/app/AppTaskGps.c

+ 1 - 1
code/app/AppGlobalVar.c

@@ -39,7 +39,7 @@ AppConfigBody AppConfigInfo = {false, true, {defaultSn}, {0}};
 #endif
 
 //*全局变量*//
-const uint32 AppSwVersion = 0x00020008;
+const uint32 AppSwVersion = 0x00020009;
 const uint8 DataModuleType = 0x02; // 01=NB,02-4G
 const uint16 HwVersion = 0x0102;
 const uint32 BlSwVersion = 0x00000002;

+ 1 - 1
code/app/AppTaskGps.c

@@ -135,12 +135,12 @@ void GpsDataDecode(uint8 *msg)
 	uint32 latitude;
 	uint32 longitude;
 	uint16 direction;
+	memcpy(gpsTestBuffer,msg,19);
 	memset((uint8 *)&GpsInfoData, 0x00, sizeof(GPSInfo));
 	p = strtok(msg, delim); //将信息进行分割
 	p2 = strtok(NULL, delim);
 	p = strtok(p, ","); //只取第1行的信息RMC
 //	p = strtok(temp,",");//模拟测试
-	memcpy(gpsTestBuffer,msg,19);
 	if (strcmp(p, "$GNRMC") == 0)
 	{
 		index = 0;