X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fnunchuk%2Fnunchuk.py;h=cd6fa213cdaec5297dd9cf22c2ea86bfa96643e2;hb=e4f822680083b65e34b9c8b091025f66ea6efde6;hp=f9019050439a359727e2b3c7bd754d818f0d4616;hpb=9d122fd5d66aa178547ec4222ab5f526f8a14cf7;p=libsigrokdecode.git diff --git a/decoders/nunchuk/nunchuk.py b/decoders/nunchuk/nunchuk.py index f901905..cd6fa21 100644 --- a/decoders/nunchuk/nunchuk.py +++ b/decoders/nunchuk/nunchuk.py @@ -43,7 +43,7 @@ class Decoder(srd.Decoder): optional_probes = [] # TODO options = {} annotations = [ - ['TODO', 'TODO'], + ['TODO', 'TODO'], ] def __init__(self, **kwargs): @@ -121,7 +121,7 @@ class Decoder(srd.Decoder): if self.state == IDLE: self.state = INITIALIZED return - + if databyte == 0x40 and self.state == START: self.state = INIT elif databyte == 0x00 and self.state == INIT: