gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] Shared Memory: PPS timestamps not set?


From: Guido Gavilanes
Subject: Re: [gpsd-users] Shared Memory: PPS timestamps not set?
Date: Fri, 5 Jul 2019 22:48:43 +0200

Hello Gary, 
What should I use instead of gps_read?
Thanks
Guido

Il giorno ven 5 lug 2019 alle ore 20:41 Gary E. Miller <address@hidden> ha scritto:
Yo Guido!

On Thu, 4 Jul 2019 18:10:09 +0200
Guido Gavilanes <address@hidden> wrote:

> I attached the code in my first email,

Ah, sorry, I missed it.

> I copy it at the bottom of this
> email.

Not a good idea, email corrupts the formatting.  Then again your
formatting needs a lot of work...

It also does not compile:

# gcc testgps.c  -o testgps
testgps.c: In function 'main':
testgps.c:28:29: error: too few arguments to function 'gps_read'
   28 |                         if (gps_read(&gps_data) == -1) {
      |                             ^~~~~~~~
In file included from testgps.c:9:
/usr/local/include/gps.h:2223:12: note: declared here
 2223 | extern int gps_read(struct gps_data_t *, char *message, int message_len);
      |            ^~~~~~~~

The old gps_read() had issues, do not use it.

> I guess I am missing something regarding shm export since ntpshm
> seems more complex than this program. I will check that.

Not really more complex in this area.  Most of the extra bulkd is
comments, usage(), better error reporting, etc.


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

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



reply via email to

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