if (!strcmp("$GPGLL") {
// run the old code
} else if(!strcmp("$GPGGA)) {
// run your new code
} else {
return;
}
would work better... ;-)
On Mon, Jan 31, 2011 at 1:34 PM, Dario Lombardo
<dario.lombardo(a)libero.it> wrote:
On 01/28/2011 07:08 PM, Martin Hauke wrote:
i've had the same issue. Use the attached patch to read the required
data from the $GPGGA NMEA sentence.
- Martin
Good, but why did you change the old code? Why don't you put something like
if (strcmp("$GPGLL") {
// run the old code
} else if(strcmp("$GPGGA)) {
// run your new code
} else {
return;
}
That could support both the devices.