]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: uart_dump: Small simplification.
authorUwe Hermann <redacted>
Thu, 14 Jun 2012 00:06:36 +0000 (02:06 +0200)
committerUwe Hermann <redacted>
Thu, 14 Jun 2012 00:06:36 +0000 (02:06 +0200)
decoders/uart_dump/uart_dump.py

index 8f190bcf552fe7e369f50b82e0a99d52b37ae1a3..11748326658d9dcde7f8fe39e285baa336aae9dd 100644 (file)
@@ -93,12 +93,8 @@ class Decoder(srd.Decoder):
 
         # Output RX and/or TX to 'filename'.
         if self.f != None:
-            if self.options['rx'] == 'yes' and rxtx == RX:
-                self.f.write(c)
-                self.f.flush()
-            if self.options['tx'] == 'yes' and rxtx == TX:
-                self.f.write(c)
-                self.f.flush()
+            self.f.write(c)
+            self.f.flush()
 
         # Output RX data to 'filename_rx'.
         if self.f_rx != None: