fix Windows compilation
This commit is contained in:
@@ -295,9 +295,10 @@ void test(struct wiimote_t* wm, byte* data, unsigned short len) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
short any_wiimote_connected(wiimote** wm, int wiimotes) {
|
short any_wiimote_connected(wiimote** wm, int wiimotes) {
|
||||||
|
int i;
|
||||||
if(!wm) return 0;
|
if(!wm) return 0;
|
||||||
|
|
||||||
for(int i = 0; i < wiimotes; i++) {
|
for(i = 0; i < wiimotes; i++) {
|
||||||
if(wm[i] && WIIMOTE_IS_CONNECTED(wm[i]))
|
if(wm[i] && WIIMOTE_IS_CONNECTED(wm[i]))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -616,11 +616,11 @@ static void handle_expansion(struct wiimote_t* wm, byte* msg) {
|
|||||||
* a handshake with the expansion.
|
* a handshake with the expansion.
|
||||||
*/
|
*/
|
||||||
void handshake_expansion(struct wiimote_t* wm, byte* data, uint16_t len) {
|
void handshake_expansion(struct wiimote_t* wm, byte* data, uint16_t len) {
|
||||||
WIIUSE_DEBUG("handshake_expansion with state %d", wm->expansion_state);
|
|
||||||
int id;
|
int id;
|
||||||
byte val = 0;
|
byte val = 0;
|
||||||
byte buf = 0x00;
|
byte buf = 0x00;
|
||||||
byte* handshake_buf;
|
byte* handshake_buf;
|
||||||
|
WIIUSE_DEBUG("handshake_expansion with state %d", wm->expansion_state);
|
||||||
|
|
||||||
switch(wm->expansion_state) {
|
switch(wm->expansion_state) {
|
||||||
/* These two initialization writes disable the encryption */
|
/* These two initialization writes disable the encryption */
|
||||||
|
|||||||
Reference in New Issue
Block a user