Re: [Linuxptp-devel] [PATCH 6/6] phc2sys: Replace magical test with a proper test.

2020-11-30 Thread Jacob Keller
On 11/29/2020 7:50 PM, Richard Cochran wrote: > When using a PPS time source with the -w flag, the program closes the PMC > agent's connection once the ptp4l service has appeared and the UTC offset > has been optionally queried. > > In order to tell whether PPS is the time source, the code test

[Linuxptp-devel] [PATCH 6/6] phc2sys: Replace magical test with a proper test.

2020-11-29 Thread Richard Cochran
When using a PPS time source with the -w flag, the program closes the PMC agent's connection once the ptp4l service has appeared and the UTC offset has been optionally queried. In order to tell whether PPS is the time source, the code tests for src->clkid == CLOCK_INVALID which is completely