now swap WIIUSE_SYNC_HANDSHAKE usages again

This commit is contained in:
Lysann Schlegel
2012-12-08 23:01:32 +01:00
parent cfd8209c23
commit a4e3140274
3 changed files with 4 additions and 4 deletions

View File

@@ -181,7 +181,7 @@ void wiiuse_disconnected(struct wiimote_t* wm) {
wm->leds = 0;
wm->state = WIIMOTE_INIT_STATES;
wm->read_req = NULL;
#ifdef WIIUSE_SYNC_HANDSHAKE
#ifndef WIIUSE_SYNC_HANDSHAKE
wm->handshake_state = 0;
#endif
wm->btns = 0;
@@ -763,7 +763,7 @@ void wiiuse_set_accel_threshold(struct wiimote_t* wm, int threshold) {
void wiiuse_resync(struct wiimote_t* wm) {
if (!wm) return;
#ifdef WIIUSE_SYNC_HANDSHAKE
#ifndef WIIUSE_SYNC_HANDSHAKE
wm->handshake_state = 0;
#endif
wiiuse_handshake(wm, NULL, 0);