diff --git a/src/classic.c b/src/classic.c index 41e7ad0..a9d160e 100644 --- a/src/classic.c +++ b/src/classic.c @@ -51,7 +51,6 @@ static void classic_ctrl_pressed_buttons(struct classic_ctrl_t* cc, short now); */ #define HANDSHAKE_BYTES_USED 12 int classic_ctrl_handshake(struct wiimote_t* wm, struct classic_ctrl_t* cc, byte* data, unsigned short len) { - int i; cc->btns = 0; cc->btns_held = 0; diff --git a/src/guitar_hero_3.c b/src/guitar_hero_3.c index cc49bcb..e085130 100644 --- a/src/guitar_hero_3.c +++ b/src/guitar_hero_3.c @@ -51,7 +51,6 @@ static void guitar_hero_3_pressed_buttons(struct guitar_hero_3_t* gh3, short now * @return Returns 1 if handshake was successful, 0 if not. */ int guitar_hero_3_handshake(struct wiimote_t* wm, struct guitar_hero_3_t* gh3, byte* data, unsigned short len) { - int i; /* * The good fellows that made the Guitar Hero 3 controller diff --git a/src/nunchuk.c b/src/nunchuk.c index 5194f90..d34b668 100644 --- a/src/nunchuk.c +++ b/src/nunchuk.c @@ -50,8 +50,6 @@ */ #define HANDSHAKE_BYTES_USED 14 int nunchuk_handshake(struct wiimote_t* wm, struct nunchuk_t* nc, byte* data, unsigned short len) { - int i; - nc->btns = 0; nc->btns_held = 0; nc->btns_released = 0; @@ -132,7 +130,6 @@ void nunchuk_disconnected(struct nunchuk_t* nc) { * @param msg The message specified in the event packet. */ void nunchuk_event(struct nunchuk_t* nc, byte* msg) { - int i; /* get button states */ nunchuk_pressed_buttons(nc, msg[5]);