mlinaje/gsm-shield-arduino

p_char = strchr((char *)(p_char), ','); is wrong

Closed this issue · 7 comments


The value is coming twice from battery and gps

 p_char = strchr((char *)(p_char), ',');

should be

 p_char = strchr((char *)(p_char1), ',');



Original issue reported on code.google.com by ashwanis...@gmail.com on 5 Jul 2012 at 11:26

[deleted comment]
[deleted comment]
Thank you very much for support!

Original comment by martines...@gmail.com on 5 Jul 2012 at 6:05

Hi, the gps.getPar function send me wrong result too, but the code seems to be 
correct (in according to post #1). Values are coming twice too or are wrong.

For example, i get : 

<longitude><longitude><latitude>

instead of 

<longitude>

Have you any ideas to fix it ? i tried some code modification already.

Original comment by valerian...@gmail.com on 27 Jul 2012 at 6:37

It should be fixed now. Thanks for help.

Original comment by martines...@gmail.com on 18 Aug 2012 at 6:04

Original comment by martines...@gmail.com on 11 Dec 2012 at 5:01

  • Changed state: Done
This issue section is not longer supported.
Please check the support page www.gsmlib.org 

Original comment by martines...@gmail.com on 6 Jul 2013 at 11:27

  • Changed state: Fixed