From 274e98d684d342ec307cce05ed878c21c3161ef4 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 14 Jun 2012 02:06:36 +0200 Subject: [PATCH] srd: uart_dump: Small simplification. --- decoders/uart_dump/uart_dump.py | 8 ++------ 1 file 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: -- 2.30.2