projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1c1d34
)
srd: uart_dump: Small simplification.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Thu, 14 Jun 2012 00:06:36 +0000
(
02:06
+0200)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Thu, 14 Jun 2012 00:06:36 +0000
(
02:06
+0200)
decoders/uart_dump/uart_dump.py
patch
|
blob
|
history
diff --git
a/decoders/uart_dump/uart_dump.py
b/decoders/uart_dump/uart_dump.py
index 8f190bcf552fe7e369f50b82e0a99d52b37ae1a3..11748326658d9dcde7f8fe39e285baa336aae9dd 100644
(file)
--- 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: