summaryrefslogtreecommitdiff
path: root/decoders/uart/uart.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/uart/uart.py')
-rw-r--r--decoders/uart/uart.py3
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)