X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fuart%2Fpd.py;h=151cae424fefefde3774dd2cdf4c00f314ef3679;hb=c1fc50b1256dba3bfad7e769691f11b729601b28;hp=0e6e548cfc08aa3ccc5a50981daa66e4c441d2aa;hpb=92b7b49f6964f57a7d6fc4473645c993cfa4ba52;p=libsigrokdecode.git diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index 0e6e548..151cae4 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -288,7 +288,7 @@ class Decoder(srd.Decoder): self.putbin(rxtx, [rxtx, bytes([b])]) self.putbin(rxtx, [2, bytes([b])]) - self.databits = [[], []] + self.databits[rxtx] = [] def get_parity_bit(self, rxtx, signal): # If no parity is used/configured, skip to the next state immediately.