From: Uwe Hermann Date: Thu, 14 Jun 2012 00:06:36 +0000 (+0200) Subject: srd: uart_dump: Small simplification. X-Git-Tag: libsigrokdecode-0.1.1~79 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=274e98d684d342ec307cce05ed878c21c3161ef4 srd: uart_dump: Small simplification. --- diff --git a/decoders/uart_dump/uart_dump.py b/decoders/uart_dump/uart_dump.py index 8f190bc..1174832 100644 --- a/decoders/uart_dump/uart_dump.py +++ b/decoders/uart_dump/uart_dump.py @@ -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: