[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
pgpP7DkccjG6u.pgp
Description: OpenPGP digital signature
- Updates from 3.20 to 3.23, David Taylor, 2021/09/21
- Re: Updates from 3.20 to 3.23, Gary E. Miller, 2021/09/21
- Re: Updates from 3.20 to 3.23, David Taylor, 2021/09/21
- Re: Updates from 3.20 to 3.23, Charles Curley, 2021/09/21
- Re: Updates from 3.20 to 3.23, David Taylor, 2021/09/23
- Re: Updates from 3.20 to 3.23, David Taylor, 2021/09/23
- Re: Updates from 3.20 to 3.23,
Gary E. Miller <=
- Re: Updates from 3.20 to 3.23, David Taylor, 2021/09/24
- Re: Updates from 3.20 to 3.23, Gary E. Miller, 2021/09/24
- Re: Updates from 3.20 to 3.23, David Taylor, 2021/09/24
- Re: Updates from 3.20 to 3.23, Greg Troxel, 2021/09/24
- Re: Updates from 3.20 to 3.23, Charles Curley, 2021/09/24
- Re: Updates from 3.20 to 3.23, David Taylor, 2021/09/24
- Re: Updates from 3.20 to 3.23, Greg Troxel, 2021/09/24
- Re: Updates from 3.20 to 3.23, Charles Curley, 2021/09/24
- Re: Updates from 3.20 to 3.23, Gary E. Miller, 2021/09/25
- Re: Updates from 3.20 to 3.23, Charles Curley, 2021/09/25