From f1618dcffb8b2f59108fcb7a5bfe6a132af2d783 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 11 May 2016 08:50:56 -0400 Subject: Thinko fix. --- timehint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'timehint.c') diff --git a/timehint.c b/timehint.c index 4444df1c..abe15b57 100644 --- a/timehint.c +++ b/timehint.c @@ -449,7 +449,7 @@ void ntpshm_link_activate(struct gps_device_t *session) * we're root, assume we want to use KPPS. */ if ((strcmp(session->pps_thread.devicename, MAGIC_HAT_GPS) == 0 - || strcmp(session->pps_thread.devicename, MAGIC_HAT_GPS) == 0) + || strcmp(session->pps_thread.devicename, MAGIC_LINK_GPS) == 0) && access("/dev/pps0", R_OK | W_OK) == 0) session->pps_thread.devicename = "/dev/pps0"; pps_thread_activate(&session->pps_thread); -- cgit v1.2.1