From fd4aa8aaed83f9f0041647b913e48ef95c1aab55 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 28 Jan 2012 19:08:13 +0100 Subject: srd: PDs: Cleanups, simplifications, small fixes. --- decoders/uart/uart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'decoders/uart') 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) -- cgit v1.2.3-70-g09d2