diff options
Diffstat (limited to 'decoders/tca6408a/pd.py')
-rw-r--r-- | decoders/tca6408a/pd.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/decoders/tca6408a/pd.py b/decoders/tca6408a/pd.py index 0d63cc3..4ca1082 100644 --- a/decoders/tca6408a/pd.py +++ b/decoders/tca6408a/pd.py @@ -64,6 +64,9 @@ class Decoder(srd.Decoder): self.out_ann = self.register(srd.OUTPUT_ANN) self.out_logic = self.register(srd.OUTPUT_LOGIC) + def flush(self): + self.put_logic_states() + def putx(self, data): self.put(self.ss, self.es, self.out_ann, data) @@ -78,6 +81,7 @@ class Decoder(srd.Decoder): # TODO def handle_reg_0x01(self, b): + self.put_logic_states() self.putx([1, ['Outputs set: %02X' % b]]) self.logic_value = b @@ -109,8 +113,6 @@ class Decoder(srd.Decoder): # Store the start/end samples of this I²C packet. self.ss, self.es = ss, es - self.put_logic_states() - # State machine. if self.state == 'IDLE': # Wait for an I²C START condition. |