X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fnunchuk.py;h=bda374522e43bce637597b98a67dceaff659c055;hp=86ec17111750dcf6ed2483317f6237f54abfa1a1;hb=2b9837d9fc5f9b4eca52327527e18db4bfb730ff;hpb=d0e93c76e381eff58ca23949301f781b24ba4a8b diff --git a/decoders/nunchuk.py b/decoders/nunchuk.py index 86ec171..bda3745 100644 --- a/decoders/nunchuk.py +++ b/decoders/nunchuk.py @@ -75,6 +75,7 @@ class Decoder(srd.Decoder): outputs = ['nunchuck'] probes = [] # TODO options = {} + annotations = [] def __init__(self, **kwargs): self.state = IDLE # TODO: Can we assume a certain initial state? @@ -84,13 +85,13 @@ class Decoder(srd.Decoder): self.databytecount = 0 def start(self, metadata): - # self.out_proto = self.add(srd.SRD_OUTPUT_PROTO, 'nunchuk') - self.out_ann = self.add(srd.SRD_OUTPUT_ANN, 'nunchuk') + # self.out_proto = self.add(srd.OUTPUT_PROTO, 'nunchuk') + self.out_ann = self.add(srd.OUTPUT_ANN, 'nunchuk') def report(self): pass - def decode(self, timeoffset, duration, data): + def decode(self, ss, es, data): out = [] o = {}