diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-28 19:08:13 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-28 19:08:13 +0100 |
commit | fd4aa8aaed83f9f0041647b913e48ef95c1aab55 (patch) | |
tree | f7120186d2c040eec1fe7c4640e97c5969bb4afb /decoders/uart | |
parent | afff6b1a0be19c4f0976309cae571a0c3e41c157 (diff) | |
download | libsigrokdecode-fd4aa8aaed83f9f0041647b913e48ef95c1aab55.tar.gz libsigrokdecode-fd4aa8aaed83f9f0041647b913e48ef95c1aab55.zip |
srd: PDs: Cleanups, simplifications, small fixes.
Diffstat (limited to 'decoders/uart')
-rw-r--r-- | decoders/uart/uart.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/decoders/uart/uart.py b/decoders/uart/uart.py index 7cefe74..abf596e 100644 --- a/decoders/uart/uart.py +++ b/decoders/uart/uart.py @@ -310,7 +310,8 @@ class Decoder(srd.Decoder): # Get the next data bit in LSB-first or MSB-first fashion. if self.options['bit_order'] == LSB_FIRST: self.databyte[rxtx] >>= 1 - self.databyte[rxtx] |= (signal << (self.options['num_data_bits'] - 1)) + self.databyte[rxtx] |= \ + (signal << (self.options['num_data_bits'] - 1)) elif self.options['bit_order'] == MSB_FIRST: self.databyte[rxtx] <<= 1 self.databyte[rxtx] |= (signal << 0) |