]> sigrok.org Git - libsigrokdecode.git/commit
sdq: only use samplerate and options values after validity check
authorGerhard Sittig <redacted>
Wed, 12 Aug 2020 16:47:01 +0000 (18:47 +0200)
committerGerhard Sittig <redacted>
Wed, 12 Aug 2020 17:43:18 +0000 (19:43 +0200)
commitd7c2340885909a619acfe590201f71faefae7843
tree2ad8163b8b7d3c68edb6619c2228ccf29bd388a1
parent2bb149e691be4e1abf664a346b0d97c3eac0ad3b
sdq: only use samplerate and options values after validity check

Move the calculation which involves the samplerate as well as user
provided options out of the meta packet reception and to the top of the
decode() method. Especially only use the samplerate after it was tested
for availability.
decoders/sdq/pd.py