]> sigrok.org Git - pulseview.git/commit
DecodeSignal: avoid specifying a zero samplerate to libsigrokdecode
authorGerhard Sittig <redacted>
Sat, 12 May 2018 06:31:52 +0000 (08:31 +0200)
committerUwe Hermann <redacted>
Thu, 17 May 2018 21:08:31 +0000 (23:08 +0200)
commitba5b52e12e2d95c5ac9155cb697e002df5df1de6
treefeaa08f37597222217eff0e7e28b970d6742894b
parenta9674d1c8c5ab81b6ea642ce263d2dd316f0e33c
DecodeSignal: avoid specifying a zero samplerate to libsigrokdecode

When the sample rate is not known, avoid claiming the value would be
zero and calling setup routines in backend libraries. Although the call
is not strictly fatal, this simple check avoids potential log messages
at callee's for this unexpected condition.
pv/data/decodesignal.cpp