]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/uart_dump/uart_dump.py
srd: uart_dump: Small simplification.
[libsigrokdecode.git] / 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: