summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
Diffstat (limited to 'decoders')
-rw-r--r--decoders/nunchuk/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/nunchuk/pd.py b/decoders/nunchuk/pd.py
index afcf1de..0861cba 100644
--- a/decoders/nunchuk/pd.py
+++ b/decoders/nunchuk/pd.py
@@ -128,8 +128,8 @@ class Decoder(srd.Decoder):
t = (self.sx, self.sy, self.ax, self.ay, self.az, self.bz, self.bc)
if -1 in t:
return
- bz = 'pressed' if self.bz == 1 else 'not pressed'
- bc = 'pressed' if self.bc == 1 else 'not pressed'
+ bz = 'pressed' if self.bz == 0 else 'not pressed'
+ bc = 'pressed' if self.bc == 0 else 'not pressed'
s = 'Analog stick: %d/%d, accelerometer: %d/%d/%d, Z: %s, C: %s' % \
(self.sx, self.sy, self.ax, self.ay, self.az, bz, bc)
self.putb([13, [s]])