From 44dcb16c584ffb1f387c3a161a6a7c1b82dbd6cf Mon Sep 17 00:00:00 2001 From: Jan Ciger Date: Mon, 12 Sep 2011 12:42:43 +0200 Subject: [PATCH] Windows compilation fixes --- src/io.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/io.c b/src/io.c index 6cde801..e3078e1 100644 --- a/src/io.c +++ b/src/io.c @@ -31,6 +31,7 @@ * @brief Handles device I/O (non-OS specific). */ #include "io.h" +#include "ir.h" #include /* for free, malloc */ @@ -90,6 +91,7 @@ void wiiuse_handshake(struct wiimote_t* wm, byte* data, uint16_t len) { { struct read_req_t* req = wm->read_req; struct accel_t* accel = &wm->accel_calib; + byte val; /* received read data */ accel->cal_zero.x = req->buf[0]; @@ -109,7 +111,7 @@ void wiiuse_handshake(struct wiimote_t* wm, byte* data, uint16_t len) { accel->cal_g.x, accel->cal_g.y, accel->cal_g.z); /* M+ off */ - byte val = 0x55; + val = 0x55; wiiuse_write_data_cb(wm, WM_EXP_MEM_ENABLE1, &val, 1, wiiuse_disable_motion_plus1); break;