]> sigrok.org Git - pulseview.git/commitdiff
Session: Allow using sample rate from meta packet
authorSoeren Apel <redacted>
Sat, 12 Dec 2015 14:01:03 +0000 (15:01 +0100)
committerSoeren Apel <redacted>
Sat, 12 Dec 2015 14:01:03 +0000 (15:01 +0100)
Currently, PV only looks at the device config to determine the
sample rate. This breaks as input filters submit meta packets
containing the sample rate and provide no device config.

Example: load any file in PV using the raw binary input filter
and set the sample rate to anything but 0. PV will still show
'sa' as the time unit, indicating that it dismisses the sample
rate information sent in the meta packet.

This patch makes this work by using the sample rate if it
wasn't already set from the device config.


No differences found