summaryrefslogtreecommitdiff
path: root/monitor_oncore.c
diff options
context:
space:
mode:
authorHaakan Johansson <f96hajo@chalmers.se>2010-11-13 16:42:20 +0100
committerJon Schlueter <jon.schlueter@gmail.com>2010-12-03 06:53:39 -0500
commit0dbcf2cd40f75b13f92df72873bfc60ac70ee63a (patch)
tree64f7c7582a8cefa18621c7a0b334d1f902a32c25 /monitor_oncore.c
parent562831b815b65fff79e72180b5a2daa8348542fe (diff)
downloadgpsd-0dbcf2cd40f75b13f92df72873bfc60ac70ee63a.tar.gz
Take programmed oncore PPS offset into account. Name correction delay -> offset.
Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>
Diffstat (limited to 'monitor_oncore.c')
-rw-r--r--monitor_oncore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/monitor_oncore.c b/monitor_oncore.c
index 1c58a97c..6b135839 100644
--- a/monitor_oncore.c
+++ b/monitor_oncore.c
@@ -158,7 +158,7 @@ static bool oncore_initialize(void)
(void)wborder(Aywin, 0, 0, 0, 0, 0, 0, 0, 0),
(void)wattrset(Aywin, A_BOLD);
- (void)mvwprintw(Aywin, 1, 1, "PPS delay:");
+ (void)mvwprintw(Aywin, 1, 1, "PPS offset:");
(void)mvwprintw(Aywin, 3, 4, " @@Ay ");
(void)wattrset(Aywin, A_NORMAL);
@@ -399,11 +399,11 @@ static void oncore_update(void)
case ONCTYPE('A', 'y'):
{
- double pps_delay;
+ double pps_offset;
- pps_delay = getbesl(buf, 4) / 1000000.0;
+ pps_offset = getbesl(buf, 4) / 1000000.0;
- (void)mvwprintw(Aywin, 2, 2, " %7.3f ms", pps_delay);
+ (void)mvwprintw(Aywin, 2, 2, " %7.3f ms", pps_offset);
}
monitor_log("Ay =");