| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
|
|
|
|
| |
timespec_diff_ns() should not be used is the delta is more than
about 2 seconds.
|
|
|
|
| |
This will prevent random pthread crashes.
|
|
|
|
| |
-Wunused-variable warning hunting cleanup
|
|
|
|
|
| |
Turned up a bug in where a counter was incremented un the Navcom driver;
this required one test rebuild.
|
|
|
|
| |
This change doesn't affect generated binary code.
|
|
|
|
| |
This change doesn't affect generated binary code.
|
|
|
|
|
|
| |
Don't use constant/expression from an array's definition when referring
to its size. Eliminates redundancy and avoids problems when array size
changes. The change doesn't affect generated code.
|
| |
|
| |
|
|
|
|
|
| |
Mismatch for 2 functions relating to CONTROLSEND_ENABLE and
RECONFIGURE_ENABLE and PPS_ENABLE not being defined
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cygwin GCC complains about code like isprint(c), where c is of type char.
The isX() and toX() functions/macros (ISO C allows either) all accept an
int, whose value should be either that of an unsigned char, or the
special value EOF (== -1).
So cast to unsigned char each argument to isprint, tolower, etc.
Silences several warnings of the form:
gpsutils.c: In function 'safe_atof':
gpsutils.c:90:5: warning: array subscript has type 'char'
[-Wchar-subscripts]
while (isspace(*p)) {
^
gpsutils.c:188:2: warning: array subscript has type 'char'
[-Wchar-subscripts]
while (isdigit(*p)) {
^
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, the build fails as follows
gpsmon.o: In function `gpsmon_hook':
gpsmon.c:(.text+0x8b0): undefined reference to `ntpshm_latch'
collect2: error: ld returned 1 exit status
scons: *** [gpsmon] Error 1
Addresses Sacannah bug #43129: ntpshm patch is incomplete.
Signed-off-by: Simon Dawson <spdawson@gmail.com>
|
|
|
|
| |
All regression tests pass.
|
| |
|
|
|
|
| |
Some cleanup and testing is still required.
|
| |
|
|
|
|
|
|
| |
A major step towards eliminating reverse linkage.
All regression tests pass.
|
|
|
|
| |
All regression tests pass.
|
| |
|
| |
|
| |
|
|
|
|
| |
All regtession tests pass. gpsmon works live on GR601-W (with PPS).
|
| |
|
| |
|
|
|
|
|
|
| |
The factoring on this could use some cleanup.
All regression tests pass. PPS is live in both gpsd and gpsmon.
|
|
|
|
|
|
|
|
| |
It came in way, way out of sequence ansd screwed something up. He may
have been fixing some real problem, however. This requures
investigation.
All regression tests pass.
|
| |
|
|
|
|
|
|
| |
Addresses a minor bug report by Michael Tatarinov <kukabu@gmail.com>.
Adds the capability, in daemon mode, to watch a specified device
rather than all devices.
|
|
|
|
|
|
|
|
| |
This came up in connection with Android. According to SuS this shouln't be
necessary if sys/time.h was included, but oh well. While we;re at it, rearrange
some includes for more consistent order.
All regression tests pass.
|
|
|
|
| |
All regression tests pass.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was broken by commit 575444. The check if the PPS time isn't
referenced with an old message time used PPS offset instead of the
difference between local PPS time and local time of the last message.
The PPS sample was reported via SHM or chrony socket only if the offset
was between -1 and 1000001 seconds.
Keep the local timestamp of the last fix in struct gps_device_t in
addition to the real timestamp and use it to check the PPS delay.
Rename the l_offset variable to delay to avoid further confusion.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When nmea is False and ncurses support is enabled, the build fails as
follows.
gpsmon.o: In function `gpsmon_hook':
gpsmon.c:(.text+0x974): undefined reference to `driver_nmea0183'
collect2: error: ld returned 1 exit status
scons: *** [gpsmon] Error 1
scons: building terminated because of errors.
The problem appears to be a failure to protect use of the driver_nmea0183
variable with appropriate #ifdef guards.
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When reconfigure is False and ncurses support is enabled, the build fails as
follows.
gpsmon.o: In function `gpsd_write':
gpsmon.c:(.text+0xbbc): undefined reference to `monitor_dump_send'
gpsmon.o: In function `main':
gpsmon.c:(.text.startup+0xd68): undefined reference to `announce_log'
collect2: error: ld returned 1 exit status
scons: *** [gpsmon] Error 1
scons: building terminated because of errors.
The problem appears to be a failure to protect calls to momnitor_dump_send
and announce_log with appropriate #ifdef guards.
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
|
|
|
|
|
|
|
|
| |
...actually revealed a bug - device-shutdown messages getting lost on the
way out to the test clients. This set of changes mostly fixes it. Some
glitches remain; this state of things passes all regression tests but
attempting to get rid of what now ought to be unnecessary code in fake.py
does not pass. To be continued...
|
| |
|
|
|
|
| |
All regression tests pass. PPS is live.
|
| |
|
| |
|
|
|
|
| |
Correct initialization observed oon SiRF-III. All regression tests pass.
|
| |
|
|
|
|
| |
All regression tests pass, PPS is live.
|
| |
|
| |
|