X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fnunchuk.py;h=068c170f9a32458683f8ff29d7dd1b6043e1e967;hb=4e338c00bda2e81210bf7569f29b77999a1d2bfb;hp=4ac1c838c5f69e60f85e34133e8f64581c22e2bd;hpb=ad2dc0de10ac5c2c6c3aacff0b2835cd4dc22578;p=libsigrokdecode.git diff --git a/decoders/nunchuk.py b/decoders/nunchuk.py index 4ac1c83..068c170 100644 --- a/decoders/nunchuk.py +++ b/decoders/nunchuk.py @@ -109,7 +109,7 @@ def decode2(inbuf): az |= (p['data'] & (3 << 6)) >> 6 # del o o = {'type': 'D', 'range': (0, 0), 'data': []} - o['data'] = [sx, sy, ax, ay, az, bz, bc] + o['data'] = [sx, sy, ax, ay, az, bz, bc] # sx = sy = ax = ay = az = bz = bc = 0 else: pass # TODO @@ -165,10 +165,3 @@ register = { # 'report': report, } -# Use psyco (if available) as it results in huge performance improvements. -try: - import psyco - psyco.bind(decode) -except ImportError: - pass -