summaryrefslogtreecommitdiff
path: root/monitor_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-17 20:52:10 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-17 20:52:10 -0500
commitd4a915c757c7749cc2b16e31919e5c2bf45e6431 (patch)
tree6a9c4a4c1b550a534fd775672c39ae109ede4432 /monitor_ubx.c
parent56282bb6ae5bea3eaa63c6e4910c1a18bc31cdd7 (diff)
downloadgpsd-d4a915c757c7749cc2b16e31919e5c2bf45e6431.tar.gz
Be explicit when PPS is not available because the build used pps=no.
Diffstat (limited to 'monitor_ubx.c')
-rw-r--r--monitor_ubx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c
index 436bab86..04f487b2 100644
--- a/monitor_ubx.c
+++ b/monitor_ubx.c
@@ -15,6 +15,7 @@ extern const struct gps_type_t driver_ubx;
static WINDOW *satwin, *navsolwin, *dopwin, *ppswin;
#define display (void)mvwprintw
+
static bool ubx_initialize(void)
{
int i;
@@ -73,8 +74,10 @@ static bool ubx_initialize(void)
return false;
(void)wborder(ppswin, 0, 0, 0, 0, 0, 0, 0, 0);
(void)wattrset(ppswin, A_BOLD);
- (void)wmove(ppswin, 1, 1);
- (void)wprintw(ppswin, "PPS offset: ");
+ (void)mvwaddstr(ppswin, 1, 1, "PPS offset: ");
+#ifndef PPS_ENABLE
+ (void)mvwaddstr(ppswin, 1, 13, "Not available");
+#endif /* PPS_ENABLE */
display(ppswin, 2, 22, " PPS ");
(void)wattrset(ppswin, A_NORMAL);