X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fam230x%2Fpd.py;h=fbc68d396db060f1db1278272891bc71c683fcab;hb=6cbba91f23b9f9ace75b4722c9c0776b9211008d;hp=0e4eac85223e94d3f65414ab5f320f8d220ca6ec;hpb=779c540dfa3780f3bb61ad46f28801952d5d190b;p=libsigrokdecode.git diff --git a/decoders/am230x/pd.py b/decoders/am230x/pd.py index 0e4eac8..fbc68d3 100644 --- a/decoders/am230x/pd.py +++ b/decoders/am230x/pd.py @@ -36,12 +36,13 @@ class SamplerateError(Exception): class Decoder(srd.Decoder): api_version = 3 id = 'am230x' - name = 'AM230x/DHTxx/RHTxx' + name = 'AM230x' longname = 'Aosong AM230x/DHTxx/RHTxx' - desc = 'Aosong AM230x/DHTxx/RHTxx humidity/temperature sensor protocol.' + desc = 'Aosong AM230x/DHTxx/RHTxx humidity/temperature sensor.' license = 'gplv2+' inputs = ['logic'] - outputs = ['am230x'] + outputs = [] + tags = ['IC', 'Sensor'] channels = ( {'id': 'sda', 'name': 'SDA', 'desc': 'Single wire serial data line'}, ) @@ -122,6 +123,9 @@ class Decoder(srd.Decoder): return checksum % 256 def __init__(self): + self.reset() + + def reset(self): self.samplerate = None self.reset_variables()