gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] Detecting Raspberry Pi Hat & PPS


From: Frank Nicholas
Subject: [gpsd-dev] Detecting Raspberry Pi Hat & PPS
Date: Thu, 5 May 2016 19:13:13 -0400

I find 2 x files that deal with detecting the Raspberry Pi hat with PPS.  They are enclosed in “if defined (PPS_ENABLE)” sections:
dev2-rpi gpsd # grep pps_thread.devicename *.c
gpsmon.c:     if (strcmp(session.pps_thread.devicename, MAGIC_HAT_GPS) == 0
timehint.c:     if (strcmp(session->pps_thread.devicename, "/dev/ttyAMA0") == 0

They are inconsistent.  It looks like the should work the same (MAGIC_HAT_GPS=“/dev/ttyAMA0” - from “SConstruct”), but probably “timehint.c" should be changed to match “gpsmon.c”.

Thanks
Frank

reply via email to

[Prev in Thread] Current Thread [Next in Thread]