diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2016-05-19 18:38:05 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2016-05-26 19:15:19 +0200 |
commit | 5b0b88ced37e8fbe3031867255412f449245ca26 (patch) | |
tree | 430b089db720b991e5431e54edc43e519b018837 /decoders/wiegand | |
parent | 135b790c851c52400279e7c932e1f900d91ae5cc (diff) | |
download | libsigrokdecode-5b0b88ced37e8fbe3031867255412f449245ca26.tar.gz libsigrokdecode-5b0b88ced37e8fbe3031867255412f449245ca26.zip |
Consistency renames of {ss,es}_ variables.
Diffstat (limited to 'decoders/wiegand')
-rw-r--r-- | decoders/wiegand/pd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/wiegand/pd.py b/decoders/wiegand/pd.py index 2352fbc..a42c9d2 100644 --- a/decoders/wiegand/pd.py +++ b/decoders/wiegand/pd.py @@ -55,7 +55,7 @@ class Decoder(srd.Decoder): self._d1_prev = None self._state = None - self._ss_state = None + self.ss_state = None self.ss_bit = None self.es_bit = None @@ -98,8 +98,8 @@ class Decoder(srd.Decoder): elif self._state == 'invalid': ann = [1, [self._state]] if ann: - self.put(self._ss_state, self.samplenum, self.out_ann, ann) - self._ss_state = self.samplenum + self.put(self.ss_state, self.samplenum, self.out_ann, ann) + self.ss_state = self.samplenum self._state = state self._bits = [] |