|
@@ -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;
|