gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updates from 3.20 to 3.23


From: Gary E. Miller
Subject: Re: Updates from 3.20 to 3.23
Date: Thu, 23 Sep 2021 08:02:03 -0700

Yo David!

I looked at your program again.

You do not need these four lines:

    /* from <gps_json.h> */
    #define GPS_JSON_RESPONSE_MAX   4096

    char gpsdMessage[GPS_JSON_RESPONSE_MAX];
    size_t gpsdMessageLen = 0;

And you never use gpsdMessage, so just lose it.

Change this:

    if (gps_read (&gpsdata, gpsdMessage, gpsdMessageLen) == -1) {

To this:

    if (gps_read(&gpsdata, NULL, 0) == -1) {


RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpP7DkccjG6u.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]