fix rumble flag and windows compiler warning

This commit is contained in:
Lysann Kessler
2012-12-08 22:44:48 +01:00
parent d7a5d77489
commit cfd8209c23
2 changed files with 2 additions and 2 deletions

View File

@@ -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]);

View File

@@ -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: