summaryrefslogtreecommitdiff
path: root/timehint.c
diff options
context:
space:
mode:
Diffstat (limited to 'timehint.c')
-rw-r--r--timehint.c2
1 files changed, 1 insertions, 1 deletions
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);