diff --git a/src/os_win.c b/src/os_win.c index 0173e04..b8d7f90 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -243,7 +243,7 @@ int wiiuse_os_read(struct wiimote_t* wm, byte* buf, int len) { /* log the received data */ #ifdef WITH_WIIUSE_DEBUG { - int i; + DWORD i; printf("[DEBUG] (id %i) RECV: (%.2x) ", wm->unid, buf[0]); for(i = 1; i < b; i++) { printf("%.2x ", buf[i]); diff --git a/src/wiiuse.c b/src/wiiuse.c index 2b813d3..b4b95db 100644 --- a/src/wiiuse.c +++ b/src/wiiuse.c @@ -629,7 +629,7 @@ int wiiuse_send(struct wiimote_t* wm, byte report_type, byte* msg, int len) { { /* Rumble flag for: 0x11, 0x13, 0x14, 0x15, 0x19 or 0x1a */ if (WIIMOTE_IS_SET(wm, WIIMOTE_STATE_RUMBLE)) - msg[1] |= 0x01; + msg[0] |= 0x01; break; } default: