diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-06-14 02:06:36 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-06-14 02:06:36 +0200 |
commit | 274e98d684d342ec307cce05ed878c21c3161ef4 (patch) | |
tree | f04881abdd616d0f925e5f85eb5cfcefd4019851 /decoders | |
parent | c1c1d34feecda97ab42fb7c3b9f7cb8a6fed190e (diff) | |
download | libsigrokdecode-274e98d684d342ec307cce05ed878c21c3161ef4.tar.gz libsigrokdecode-274e98d684d342ec307cce05ed878c21c3161ef4.zip |
srd: uart_dump: Small simplification.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/uart_dump/uart_dump.py | 8 |
1 files changed, 2 insertions, 6 deletions
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: |