srd: uart: Add missing initialization.
authorUwe Hermann <uwe@hermann-uwe.de>
Wed, 1 Feb 2012 18:07:11 +0000 (19:07 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Wed, 1 Feb 2012 22:18:24 +0000 (23:18 +0100)
decoders/uart/uart.py

index f0f40c92289bc2c59f7d5a1dd68050ba19e2744a..5098977cc074e3d841cc39c9edcd9224a146ce02 100644 (file)
@@ -220,6 +220,7 @@ class Decoder(srd.Decoder):
         self.startbit = [-1, -1]
         self.cur_data_bit = [0, 0]
         self.databyte = [0, 0]
+        self.paritybit = [-1, -1]
         self.stopbit1 = [-1, -1]
         self.startsample = [-1, -1]