]> sigrok.org Git - libsigrok.git/commit - strutil.c
sr: sr_samplerate_string: Allow 3.15Hz etc. as output.
authorUwe Hermann <redacted>
Mon, 27 Feb 2012 21:27:33 +0000 (22:27 +0100)
committerUwe Hermann <redacted>
Mon, 27 Feb 2012 21:27:33 +0000 (22:27 +0100)
commitc69e35a7147ca0c1554c8ba13a9210fafb6f9796
tree4d0bf659721617770ed3ba4fdf90bbf60759914f
parentaae2fed675fc63aae58569a03c71201dc449344b
sr: sr_samplerate_string: Allow 3.15Hz etc. as output.

This is required for some hardware, e.g. ChronoVu LA8, where
33.333333 MHz or 2.439024 MHz are valid samplerates. This is because the
hardware takes a sampleperiod (in nanoseconds) as input, not a
samplerate (in Hz).
strutil.c