diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2016-01-04 13:41:40 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-01-04 13:41:40 -0500 |
commit | b6807735feafa583329b2ce4bc0d48287a64b9e8 (patch) | |
tree | b3f61d91fc8a709f05cce709a2b985260e51b60b | |
parent | 7d0ef38ae6189593db12349d081edfc2bb734419 (diff) | |
download | gpsd-b6807735feafa583329b2ce4bc0d48287a64b9e8.tar.gz |
Make asynchronous updating of PPS windows more reliable.
Generalizes a patch for monitor_ubx.c submitted by by Nuno Gonçalves.
-rw-r--r-- | monitor_nmea0183.c | 1 | ||||
-rw-r--r-- | monitor_sirf.c | 1 | ||||
-rw-r--r-- | monitor_ubx.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/monitor_nmea0183.c b/monitor_nmea0183.c index be48790b..426d9b05 100644 --- a/monitor_nmea0183.c +++ b/monitor_nmea0183.c @@ -107,6 +107,7 @@ static bool nmea_initialize(void) #endif /* PPS_ENABLE */ (void)mvwprintw(gpgsawin, 5, 9, " GSA + PPS "); (void)wattrset(gpgsawin, A_NORMAL); + (void)syncok(gpgsawin, true); gpggawin = derwin(devicewin, 9, 30, 6, 50); assert(gpggawin !=NULL); diff --git a/monitor_sirf.c b/monitor_sirf.c index 25411f00..8c99b93b 100644 --- a/monitor_sirf.c +++ b/monitor_sirf.c @@ -168,6 +168,7 @@ static bool sirf_initialize(void) display(mid7win, 1, 23, "Bias: "); display(mid7win, 2, 1, "GPS Time: "); display(mid7win, 2, 23, "PPS: "); + (void)syncok(mid7win, true); #ifndef PPS_ENABLE (void)mvwaddstr(mid7win, 2, 40, "N/A"); #endif /* PPS_ENABLE */ diff --git a/monitor_ubx.c b/monitor_ubx.c index 4425d351..b216f0a0 100644 --- a/monitor_ubx.c +++ b/monitor_ubx.c @@ -72,6 +72,7 @@ static bool ubx_initialize(void) if ((ppswin = derwin(devicewin, 3, 51, 16, 28)) == NULL) return false; (void)wborder(ppswin, 0, 0, 0, 0, 0, 0, 0, 0); + (void)syncok(ppswin, true); (void)wattrset(ppswin, A_BOLD); #define TOFF_LINE 1 #define TOFF_COLUMN 1 |