X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fdali%2Fpd.py;h=419e364b39d9a1c3c5b8b95280f1ee85272ccb74;hb=6d1cde1daeea93b36c1c2c09e160e5b8042ef22b;hp=9e99b816de87eac7bc401d0e56ffb03710da15a3;hpb=2787cf2abc0187679e87d3735ca3e64c2a1a91c8;p=libsigrokdecode.git diff --git a/decoders/dali/pd.py b/decoders/dali/pd.py index 9e99b81..419e364 100644 --- a/decoders/dali/pd.py +++ b/decoders/dali/pd.py @@ -31,7 +31,7 @@ class Decoder(srd.Decoder): desc = 'Digital Addressable Lighting Interface (DALI) protocol.' license = 'gplv2+' inputs = ['logic'] - outputs = ['dali'] + outputs = [] tags = ['Embedded/industrial', 'Lighting'] channels = ( {'id': 'dali', 'name': 'DALI', 'desc': 'DALI data line'}, @@ -42,7 +42,7 @@ class Decoder(srd.Decoder): ) annotations = ( ('bit', 'Bit'), - ('startbit', 'Startbit'), + ('startbit', 'Start bit'), ('sbit', 'Select bit'), ('ybit', 'Individual or group'), ('address', 'Address'), @@ -52,7 +52,7 @@ class Decoder(srd.Decoder): ) annotation_rows = ( ('bits', 'Bits', (0,)), - ('raw', 'Raw data', (7,)), + ('raw-data', 'Raw data', (7,)), ('fields', 'Fields', (1, 2, 3, 4, 5, 6)), ) @@ -61,7 +61,6 @@ class Decoder(srd.Decoder): def reset(self): self.samplerate = None - self.samplenum = None self.edges, self.bits, self.ss_es_bits = [], [], [] self.state = 'IDLE' self.dev_type = None