diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-24 14:22:37 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-24 14:22:37 -0500 |
commit | 036dd27f1b3711b707b8e3f338ce56a1186a285f (patch) | |
tree | a00ae1d4c542ec3aa2c290b1ecc7ae49b6d30231 | |
parent | 0957e01b6047cc31bffec64f1a6426158e6f4d8d (diff) | |
download | gpsd-036dd27f1b3711b707b8e3f338ce56a1186a285f.tar.gz |
TOFF display in the ubx monitor.
-rw-r--r-- | monitor_ubx.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c index 6766524f..da48503b 100644 --- a/monitor_ubx.c +++ b/monitor_ubx.c @@ -75,9 +75,17 @@ 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: "); +#define TOFF_LINE 1 +#define TOFF_COLUMN 1 + (void)mvwaddstr(ppswin, TOFF_LINE, TOFF_COLUMN, "TOFF: "); #ifndef PPS_ENABLE - (void)mvwaddstr(ppswin, 1, 6, "N/A"); + (void)mvwaddstr(ppswin, TOFF_LINE, TOFF_COLUMN + 10, "N/A"); +#endif /* PPS_ENABLE */ +#define PPS_LINE 1 +#define PPS_COLUMN 26 + (void)mvwaddstr(ppswin, PPS_LINE, PPS_COLUMN, "PPS: "); +#ifndef PPS_ENABLE + (void)mvwaddstr(ppswin, PPS_LINE, PPS_COLUMN + 10, "N/A"); #endif /* PPS_ENABLE */ display(ppswin, 2, 22, " PPS "); (void)wattrset(ppswin, A_NORMAL); @@ -251,8 +259,12 @@ static void ubx_update(void) break; } +#ifdef NTP_ENABLE + toff_update(ppswin, TOFF_LINE, TOFF_COLUMN + 6); +#endif /* NTP_ENABLE */ + #ifdef PPS_ENABLE - pps_update(ppswin, 1, 6); + pps_update(ppswin, PPS_LINE, PPS_COLUMN + 5); #endif /* PPS_ENABLE */ } |