diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-08-31 11:34:46 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-08-31 11:34:46 +0200 |
commit | b08272363131621c7571a02ac752e727e0ed54df (patch) | |
tree | 33f150919bb40f3adbb6116090c8e6607fbcb1b2 /decoders/uart | |
parent | 47ec18f56d174fbfc6cba9ff76c80518aa90cc46 (diff) | |
download | libsigrokdecode-b08272363131621c7571a02ac752e727e0ed54df.tar.gz libsigrokdecode-b08272363131621c7571a02ac752e727e0ed54df.zip |
srd: uart: Fix regression.
Thanks Iztok Jeras <iztok.jeras@gmail.com> for the report.
Diffstat (limited to 'decoders/uart')
-rw-r--r-- | decoders/uart/uart.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/decoders/uart/uart.py b/decoders/uart/uart.py index 92c105c..24551da 100644 --- a/decoders/uart/uart.py +++ b/decoders/uart/uart.py @@ -268,9 +268,10 @@ class Decoder(srd.Decoder): # TODO: Either RX or TX could be omitted (optional probe). for (self.samplenum, pins) in data: - # Ignore identical samples early on (for performance reasons). - if self.oldpins == pins: - continue + # Note: Ignoring identical samples here for performance reasons + # is not possible for this PD, at least not in the current state. + # if self.oldpins == pins: + # continue self.oldpins, (rx, tx) = pins, pins # First sample: Save RX/TX value. |