X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fuart_dump%2Fuart_dump.py;fp=decoders%2Fuart_dump%2Fuart_dump.py;h=8f190bcf552fe7e369f50b82e0a99d52b37ae1a3;hp=6ed0b6110ddb5625a8970f14e700d7b14d6ca2ba;hb=c1c1d34feecda97ab42fb7c3b9f7cb8a6fed190e;hpb=a0153e903ba04cf9e6eb8c8a501508f4606efa6b diff --git a/decoders/uart_dump/uart_dump.py b/decoders/uart_dump/uart_dump.py index 6ed0b61..8f190bc 100644 --- a/decoders/uart_dump/uart_dump.py +++ b/decoders/uart_dump/uart_dump.py @@ -95,16 +95,20 @@ class Decoder(srd.Decoder): 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() # Output RX data to 'filename_rx'. if self.f_rx != None: if self.options['rx'] == 'yes' and rxtx == RX: self.f_rx.write(c) + self.f_rx.flush() # Output TX data to 'filename_tx'. if self.f_tx != None: if self.options['tx'] == 'yes' and rxtx == TX: self.f_tx.write(c) + self.f_tx.flush()