You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
When my gps device has no signal,I received something like $GNGGA,081235.319,,,,,0,00,99.99,,M,,M,,4E
,there are five commas behind UTC. The index of UTC is 2,so the index of Lat should be 3.
when program call funcion str = strtok(NULL, ","); it will skip directly five commas,and return "0" (Quality).
but variable index is 3. it will put "0" (Quality) on position of Lat.
to minimal change your codes. I'm tring reform strtok.
here is my code
The text was updated successfully, but these errors were encountered:
Hello!
When my gps device has no signal,I received something like $GNGGA,081235.319,,,,,0,00,99.99,,M,,M,,4E
,there are five commas behind UTC. The index of UTC is 2,so the index of Lat should be 3.
when program call funcion str = strtok(NULL, ","); it will skip directly five commas,and return "0" (Quality).
but variable index is 3. it will put "0" (Quality) on position of Lat.
to minimal change your codes. I'm tring reform strtok.
here is my code
The text was updated successfully, but these errors were encountered: