diff --git a/src/classic.c b/src/classic.c index a9d160e..a87d1ef 100644 --- a/src/classic.c +++ b/src/classic.c @@ -126,13 +126,9 @@ void classic_ctrl_disconnected(struct classic_ctrl_t* cc) { * @param msg The message specified in the event packet. */ void classic_ctrl_event(struct classic_ctrl_t* cc, byte* msg) { - int i, lx, ly, rx, ry; + int lx, ly, rx, ry; byte l, r; - /* decrypt data */ - for (i = 0; i < 6; ++i) - msg[i] = (msg[i] ^ 0x17) + 0x17; - classic_ctrl_pressed_buttons(cc, from_big_endian_uint16_t(msg + 4)); /* left/right buttons */ diff --git a/src/guitar_hero_3.c b/src/guitar_hero_3.c index e085130..296cb43 100644 --- a/src/guitar_hero_3.c +++ b/src/guitar_hero_3.c @@ -127,11 +127,6 @@ void guitar_hero_3_disconnected(struct guitar_hero_3_t* gh3) { * @param msg The message specified in the event packet. */ void guitar_hero_3_event(struct guitar_hero_3_t* gh3, byte* msg) { - int i; - - /* decrypt data */ - for (i = 0; i < 6; ++i) - msg[i] = (msg[i] ^ 0x17) + 0x17; guitar_hero_3_pressed_buttons(gh3, from_big_endian_uint16_t(msg + 4));