forked from sigrokproject/libsigrok
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CSV time by avoiding accmulating errors
As reported in https://sigrok.org/bugzilla/show_bug.cgi?id=1027 , the CSV reported time in ns can have an error that increases over time when the sample frequency does not divide into an integer number of nanoseconds (i.e. the common 24MHz USB analyzers). Fix the error by calculating the time as a function of the sample at each step.
- Loading branch information
1 parent
de4dc45
commit 5f314d2
Showing
1 changed file
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters