summaryrefslogtreecommitdiff
path: root/gpsmon.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix broken build for time_offset in gpsmonJon Schlueter2015-02-251-0/+2
| | | | | | | fix broken scons build with the following: scons minimal=on ncurses=on pps=on socket_export=on Missing NTP_ENABLE guard around usage of time_offset in gpsmon_hook()
* Fix a glitch when painting short values in a field.Eric S. Raymond2015-02-251-0/+6
|
* Put the PPS offset in the PPS timebar in gpsmon.Gary E. Miller2015-02-241-4/+7
|
* Convert gpsmon_hook() to use timespec_str()Gary E. Miller2015-02-241-10/+17
| | | | timespec_str() there fixes problems displaying negative timespecs
* Fix a gpsmon display glitch in client mode.Eric S. Raymond2015-02-241-1/+3
|
* In gpsmon, refactor so PPS field updates are done by common code.Eric S. Raymond2015-02-241-3/+30
|
* gpsmon: refactoring step, make utility function for TOS display.Eric S. Raymond2015-02-241-0/+25
|
* In gpsmon, repair PPSBAR emission.Eric S. Raymond2015-02-241-3/+19
|
* In gpsmon, restore some visibilization inadvertently removed.Eric S. Raymond2015-02-241-2/+4
|
* TOFF display in gpsmon.Eric S. Raymond2015-02-241-6/+5
|
* Restore correct screen painting for gpsmon error messages.Eric S. Raymond2015-02-241-24/+8
| | | | There's still some minor bug here - extra newlines at level LOG_PROG and above.
* Incomplete TOFF display code for gpsmon in NMEA0183 mode.Eric S. Raymond2015-02-231-8/+9
| | | | Fields have been moved to accommodate TOFF but it is not yet displayed.
* TOFF JSON message implemented and documented.Eric S. Raymond2015-02-231-8/+27
| | | | | | All regression tests pass. PPS observed live with gosmon. gpsmon presently ignores this message, but shout display its contents near PPS.
* Abolish all confusing uses of the word 'drift' for a time delta.Eric S. Raymond2015-02-231-10/+10
| | | | No logic changes. All regression tesrs pass. Live PPS observed.
* Fixing gpsmon.c to fix broken buildJon Schlueter2015-02-181-1/+1
| | | | | | | | scons minimal=on control_socket=on ncurses=on pps=on Fails with json_pps_read not defined for gpsmon We were missing matching guard in gpsmon for json_pps_read
* In gpsmon, attempt to banish edge-of-screen cruft from initialization JSON.Eric S. Raymond2015-02-121-0/+3
| | | | Also, use TPV rather than PVT to be consistent with GPSD JSON.
* Stop calling ntpshhm_latch() more than once a second in gpsmon.Gary E. Miller2015-02-111-2/+7
| | | | | Now the gpsmon hardware mode call to ntpshm_latch() looks more like the one in gpsd.
* BSD compiler waening and splint cleanup.Eric S. Raymond2015-02-111-1/+1
|
* Fix the gpsmon display-trashing problem; add some documentation and asserts.Eric S. Raymond2015-02-101-3/+4
| | | | All regression tests pass.
* splint cleanup. All regressiion tests pass.Eric S. Raymond2015-02-091-2/+2
|
* Fix PPS vars in client-mode gpsmon.Eric S. Raymond2015-02-031-0/+3
| | | | All regression tests pass.
* Add note where gpsmon is failing in PPS.Gary E. Miller2015-02-021-0/+1
|
* Clean up pps_early_init() placement in gpsmon.Gary E. Miller2015-02-021-3/+3
|
* Fix improper typecasting in a timespecGary E. Miller2015-02-021-6/+6
|
* Add TS_SUB() to subtract timespecs. Fix another double.Gary E. Miller2015-02-021-5/+7
|
* Comment possible numeric overflow in timespec_diff_ns()Gary E. Miller2015-02-021-0/+1
| | | | | timespec_diff_ns() should not be used is the delta is more than about 2 seconds.
* Add missing ppslast_mutex init to gpsmonGary E. Miller2015-02-021-0/+3
| | | | This will prevent random pthread crashes.
* Tighter guard on buf variable in gpsmon.c to match usageJon Schlueter2015-01-261-0/+2
| | | | -Wunused-variable warning hunting cleanup
* Coverity/splint cleanup.Eric S. Raymond2015-01-211-1/+2
| | | | | Turned up a bug in where a counter was incremented un the Navcom driver; this required one test rebuild.
* Add str_{,v}appendf, use it everywhere.Zbigniew Chyla2015-01-211-4/+2
| | | | This change doesn't affect generated binary code.
* Add str_starts_with macro, use it instead of strncmp.Zbigniew Chyla2015-01-211-3/+4
| | | | This change doesn't affect generated binary code.
* Always use sizeof to get array sizeZbigniew Chyla2015-01-131-1/+1
| | | | | | 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.
* Cleanup of string function and sizeof usage. All regression tests pass.Zbigniew Chyla2015-01-131-2/+2
|
* Fix the build in some unusual cases. All regression tests pass.Eric S. Raymond2015-01-131-2/+2
|
* warning hunting cleanup -Wunused-variable in gpsmon.cJon Schlueter2015-01-091-1/+3
| | | | | Mismatch for 2 functions relating to CONTROLSEND_ENABLE and RECONFIGURE_ENABLE and PPS_ENABLE not being defined
* Fix a brown-paper-bag typo.Eric S. Raymond2015-01-091-1/+1
|
* In gpsmon, prevent a spurious warning on Bluetooth devices.Eric S. Raymond2015-01-081-2/+5
|
* Silences an unused-variable warning when ntpshm = FalseMatt2015-01-081-0/+2
|
* Move side effects out of assert()Zbigniew Chyla2015-01-071-2/+3
|
* Silence compiler warnings about array subscripts of type 'char'Matt2014-09-101-5/+5
| | | | | | | | | | | | | | | | | | | | 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)) { ^
* Complete wrapping of ntpshm_latch function in #ifdef NTPSHM_ENABLESimon Dawson2014-09-041-0/+2
| | | | | | | | | | | | | 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>
* splint/cppcheck cleanuo after the gpsd_report change.Eric S. Raymond2014-08-271-5/+4
| | | | All regression tests pass.
* Clean up duplicarive code in gpsmon.Eric S. Raymond2014-08-271-12/+1
|
* Reverse linkage of gpsd_report() is abolished. All regression tests pass.Eric S. Raymond2014-08-271-51/+20
| | | | Some cleanup and testing is still required.
* More gpsd_report removal. All regression tests pass.Eric S. Raymond2014-08-271-1/+1
|
* Introduce struct errout_t to encapsulate error-reporting hooks.Eric S. Raymond2014-08-271-2/+2
| | | | | | A major step towards eliminating reverse linkage. All regression tests pass.
* Structure member name change: packet -> lexer. No logic changes.Eric S. Raymond2014-08-271-15/+15
| | | | All regression tests pass.
* Eliminate reverse linkage of gpsd_write. All regression tests pass.Eric S. Raymond2014-08-261-1/+2
|
* splint cleanup. All regression tests pass.Eric S. Raymond2014-08-251-0/+2
|
* Attempted fix for second 'n' not working in gpsmon.Eric S. Raymond2014-08-241-0/+7
|