diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-12 23:40:45 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-12 23:40:45 -0500 |
commit | fa6f82dfcd38b4bc948de29aac64ad21380406d7 (patch) | |
tree | 5231906a5da445cd7a412e58a9df28b56f4c4d7a /monitor_ubx.c | |
parent | 738fb5b3c466e5ea021b164f9466c76d4033d608 (diff) | |
download | gpsd-fa6f82dfcd38b4bc948de29aac64ad21380406d7.tar.gz |
Widen PPS offset field in the three montors (NMEA, uBlox, SiRF) that report it.
To accomplish this, I had to shorted "PPS offset:" to "PPS:"; documentation
has been adjusted accordingly
In the NMEA and uBlox cases this gets us the required 22 characters.
The SiRF monitor is four shy of that.
The OnCore monitor gets PPS offset in-band and already has fields
sised to report that.
Diffstat (limited to 'monitor_ubx.c')
-rw-r--r-- | monitor_ubx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c index 149d73b8..44ec5dd0 100644 --- a/monitor_ubx.c +++ b/monitor_ubx.c @@ -75,9 +75,9 @@ static bool ubx_initialize(void) return false; (void)wborder(ppswin, 0, 0, 0, 0, 0, 0, 0, 0); (void)wattrset(ppswin, A_BOLD); - (void)mvwaddstr(ppswin, 1, 1, "PPS offset: "); + (void)mvwaddstr(ppswin, 1, 1, "PPS: "); #ifndef PPS_ENABLE - (void)mvwaddstr(ppswin, 1, 13, "N/A"); + (void)mvwaddstr(ppswin, 1, 6, "N/A"); #endif /* PPS_ENABLE */ display(ppswin, 2, 22, " PPS "); (void)wattrset(ppswin, A_NORMAL); @@ -264,11 +264,11 @@ static void ubx_update(void) if ( 86400 < (long)labs(timedelta.tv_sec) ) { /* more than one day off, overflow */ /* need a bigger field to show it */ - (void)mvwprintw(ppswin, 1, 13, "> 1 day"); + (void)mvwprintw(ppswin, 1, 6, "> 1 day"); } else { char buf2[TIMESPEC_LEN]; (void)timespec_str( &timedelta, buf2, sizeof(buf2) ); - (void)mvwprintw(ppswin, 1, 13, "%s", buf2); + (void)mvwprintw(ppswin, 1, 6, "%s", buf2); } (void)wnoutrefresh(ppswin); } |