From d46b71ed775eee65088d8f2283cd0db26b46881b Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 8 Apr 2018 19:08:39 +0200 Subject: rc_encode: Use different annotation classes for code word addr/data. --- decoders/rc_encode/pd.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'decoders') diff --git a/decoders/rc_encode/pd.py b/decoders/rc_encode/pd.py index 3184e72..56b60ca 100644 --- a/decoders/rc_encode/pd.py +++ b/decoders/rc_encode/pd.py @@ -90,12 +90,13 @@ class Decoder(srd.Decoder): ('bit-U', 'Bit U'), ('bit-sync', 'Bit sync'), ('pin', 'Pin'), - ('remote', 'Remote'), + ('code-word-addr', 'Code word address'), + ('code-word-data', 'Code word data'), ) annotation_rows = ( ('bits', 'Bits', (0, 1, 2, 3, 4)), ('pins', 'Pins', (5,)), - ('remote', 'Remote', (6,)), + ('code-words', 'Code words', (6, 7)), ) options = ( {'id': 'remote', 'desc': 'Remote', 'default': 'none', @@ -154,7 +155,7 @@ class Decoder(srd.Decoder): self.put(self.labels[1], self.labels[2], self.out_ann, [6, [self.labels[0]]]) # Write model decode. self.put(self.labels[4], self.labels[5], self.out_ann, - [6, [self.labels[3]]]) # Write model decode. + [7, [self.labels[3]]]) # Write model decode. samples = self.samplenum - self.samplenumber_last pin = self.wait({'skip': 8 * samples}) # Wait for end of sync bit. self.es = self.samplenum -- cgit v1.2.3-70-g09d2