Created
November 24, 2009 14:41
-
-
Save zenchild/241910 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- io_nix.c 2008-03-29 16:53:32.000000000 -0500 | |
+++ io_nix.c.new 2009-11-24 08:36:45.000000000 -0600 | |
@@ -192,6 +192,11 @@ | |
addr.l2_psm = htobs(WM_OUTPUT_CHANNEL); | |
+ /* You cannot guarantee that this will automatically be set to 0 so | |
+ * it is explicitly set here. | |
+ */ | |
+ addr.l2_cid = 0; | |
+ | |
/* connect to wiimote */ | |
if (connect(wm->out_sock, (struct sockaddr*)&addr, sizeof(addr)) < 0) { | |
perror("connect() output sock"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment