]> sigrok.org Git - libsigrokdecode.git/commitdiff
lin: handle_break(): Use self.putx().
authorUwe Hermann <redacted>
Sun, 21 Oct 2018 17:30:32 +0000 (19:30 +0200)
committerUwe Hermann <redacted>
Sun, 21 Oct 2018 17:30:32 +0000 (19:30 +0200)
decoders/lin/pd.py

index e82acf41fc09294d46bf3a9275daeb8c580d35fa..ac6ed1ff9df2c99d911c07a3b8b5d680f51230ae 100644 (file)
@@ -123,8 +123,7 @@ class Decoder(srd.Decoder):
         self.fsm.reset()
         self.fsm.transit(LinFsm.State.Sync)
 
-        data = [1, ['Break condition', 'Break', 'Brk', 'B']]
-        self.put(self.ss_block, self.es_block, self.out_ann, data)
+        self.putx([1, ['Break condition', 'Break', 'Brk', 'B']])
 
     def handle_sync(self, value):
         self.fsm.transit(LinFsm.State.Pid)