X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fdali%2Fpd.py;h=419e364b39d9a1c3c5b8b95280f1ee85272ccb74;hb=HEAD;hp=525066d45ecef35053ab6fdeb589f1e42c20345f;hpb=d6d8a8a440ea2a81e6ddde33d16bc84d01cdb432;p=libsigrokdecode.git diff --git a/decoders/dali/pd.py b/decoders/dali/pd.py index 525066d..419e364 100644 --- a/decoders/dali/pd.py +++ b/decoders/dali/pd.py @@ -28,10 +28,10 @@ class Decoder(srd.Decoder): id = 'dali' name = 'DALI' longname = 'Digital Addressable Lighting Interface' - desc = 'DALI lighting control protocol.' + 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