]> sigrok.org Git - libsigrokdecode.git/commit
ir_nec: only use the samplerate after receiving the value
authorGerhard Sittig <redacted>
Sat, 25 Jul 2020 15:51:07 +0000 (17:51 +0200)
committerGerhard Sittig <redacted>
Sat, 25 Jul 2020 21:16:01 +0000 (23:16 +0200)
commitb3f83fda31bfeef63b0ed5610c7b2986ad80dcc5
tree1a492564fb1476bd1ecfb23709022ad78af48878
parent34ed4b3fb179f4ff7972879534a7395c90fe8d84
ir_nec: only use the samplerate after receiving the value

The metadata() method unconditionally referenced the samplerate even
though the value is only available conditionally. Move the references to
a location after the samplerate presence check.
decoders/ir_nec/pd.py