Package: libcwiid1
Version: 0.6.00+svn201-3
Severity: normal

the code to detect the balance board seems wrong
see also:
http://wiibrew.org/wiki/Wii_Balance_Board#Identification

partial fix that works for me
(some lines below a similar problem might occur)

--- cwiid-0.6.00+svn201.orig/libcwiid/thread.c
+++ cwiid-0.6.00+svn201/libcwiid/thread.c
@@ -216,8 +216,16 @@ void *status_thread(struct wiimote *wiim
                                status_mesg->ext_type = CWIID_EXT_BALANCE;
                                break;
                        case EXT_MOTIONPLUS:
-                               status_mesg->ext_type = CWIID_EXT_MOTIONPLUS;
-                               break;
+                         /* might as well be a balance board
+                            s.a.
+                            
http://wiibrew.org/wiki/Wii_Balance_Board#Identification
+                         */
+                         if ((cwiid_read(wiimote, CWIID_RW_REG, 0xA400FE, 2, 
&buf[0])==0)
+                             && (buf[0] == EXT_MOTIONPLUS) && (buf[1] == 0x02))
+                           status_mesg->ext_type = CWIID_EXT_BALANCE;
+                         else
+                           status_mesg->ext_type = CWIID_EXT_MOTIONPLUS;
+                         break;
                        case EXT_PARTIAL:
                                /* Everything (but MotionPlus) shows up as 
partial until initialized */
                                buf[0] = 0x55;


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libcwiid1 depends on:
ii  libbluetooth3                 4.94-3     Library to use the BlueZ Linux Blu
ii  libc6                         2.13-10    Embedded GNU C Library: Shared lib

libcwiid1 recommends no packages.

libcwiid1 suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to