Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ts2phc: Fix edge rejection for pulse widths over 0.5s.
If the configured pulse width is longer than 0.5 seconds, the calculated range of ignored offsets is too small to cover the wrong edge. Fix the calculation of the limits to use the minimum of pulsewidth and (1.0s - pulsewidth). A pulsewidth of 0.5s should give the shortest interval. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
- Loading branch information