From f9bde9421060acb79bd51e6d3195e62eb84be81f Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 28 Jun 2012 16:50:40 -0500 Subject: [PATCH] Comment out decryption in nunchuk - needed to work with a simulated Nunchuk. Not sure why this was needed - will test with a real nunchuk. --- src/nunchuk.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nunchuk.c b/src/nunchuk.c index 94f9c46..b080e9b 100644 --- a/src/nunchuk.c +++ b/src/nunchuk.c @@ -61,9 +61,10 @@ int nunchuk_handshake(struct wiimote_t* wm, struct nunchuk_t* nc, byte* data, un nc->accel_calib.st_alpha = wm->accel_calib.st_alpha; /* decrypt data */ +/* for (i = 0; i < len; ++i) data[i] = (data[i] ^ 0x17) + 0x17; - +*/ if (data[offset] == 0xFF) { /* * Sometimes the data returned here is not correct. @@ -139,9 +140,10 @@ void nunchuk_event(struct nunchuk_t* nc, byte* msg) { int i; /* decrypt data */ +/* for (i = 0; i < 6; ++i) msg[i] = (msg[i] ^ 0x17) + 0x17; - +*/ /* get button states */ nunchuk_pressed_buttons(nc, msg[5]);