Pārlūkot izejas kodu

重卡项目-丰都软件发布版本-V0.1.0.3

LAPTOP-KB7QFH2U\ChenJie-PC 1 gadu atpakaļ
vecāks
revīzija
5afbc9c664
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1 1
      code/app/AppGlobalVar.c
  2. 2 2
      code/app/AppTaskGps.c

+ 1 - 1
code/app/AppGlobalVar.c

@@ -20,7 +20,7 @@
 
 #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"
 

+ 2 - 2
code/app/AppTaskGps.c

@@ -63,7 +63,7 @@ void GpsTask(void *pvParameters)
 }
 void GpsDataDecode(uint8 *msg)
 {
-	//char temp[] = "$GNRMC,082626.000,A,2939.91801,N,10637.09500,E,0.543,30.254,261120,,,A,V*17";
+//	char temp[] = "$GNRMC,082626.000,A,2939.91801,N,10637.09500,E,5.543,30.254,261120,,,A,V*17";
 	char *p = NULL;
 	char  *p2 = NULL;
 	const char *delim = "\n";
@@ -78,7 +78,7 @@ void GpsDataDecode(uint8 *msg)
 	p = strtok(msg, delim); //将信息进行分割
 	p2 = strtok(NULL, delim);
 	p = strtok(p, ","); //只取第1行的信息RMC
-	//p = strtok(temp,",");//模拟测试
+//	p = strtok(temp,",");//模拟测试
 	if (strcmp(p, "$GNRMC") == 0)
 	{
 		index = 0;