gpsd-dev
[Top][All Lists]
Advanced

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

Two patches for ppscheck that fix behavior of -x,--seconds option


From: Igor Moskovtsev
Subject: Two patches for ppscheck that fix behavior of -x,--seconds option
Date: Thu, 16 May 2024 17:18:55 +0300

ppscheck_timeout.patch - fixes infinite loop if time_pps_fetch() timed out.

ppscheck_devname.patch - fixes device name in output messages if -x,--seconds option is used.

Example (incorrect device name):

$ sudo ppscheck --seconds 3 /dev/pps0
INFO: ioctl(--seconds, TIOCMGET) failed: Inappropriate ioctl for device(25)
INFO: --seconds does not appear to be a tty
INFO: kpps_caps 0x1151
  PPS_CAPTUREASSERT
  PPS_CAPTUREBOTH
  PPS_OFFSETASSERT
  PPS_CANWAIT
  PPS_ECHOASSERT
  PPS_TSFMT_TSPEC

WARNING: missing PPS_CAPTURECLEAR, pulse may be offset

# Src   Seconds                 Signal    Sequence

  KPPS  1715867905.116225661    assert  14976
  KPPS  0.000000000    clear   0

  KPPS  1715867906.116250331    assert  14977
  KPPS  1715867906.941990981    assert  14978

--
Best regards,
Igor Moskovtsev
System programmer
Avtodoria LLC

Attachment: ppscheck_devname.patch
Description: Text Data

Attachment: ppscheck_timeout.patch
Description: Text Data


reply via email to

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