]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/uart/uart.py
srd: PDs: Cleanups, simplifications, small fixes.
[libsigrokdecode.git] / decoders / uart / uart.py
index 7cefe740bff73d389bc6d1dbe4a5155f35ce957f..abf596e6aa26d53e5d526ccfde1f19581384cf28 100644 (file)
@@ -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)