From owner-freebsd-current@FreeBSD.ORG Sun Feb 6 12:06:59 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97C4A16A4CE for ; Sun, 6 Feb 2005 12:06:59 +0000 (GMT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 559C043D45 for ; Sun, 6 Feb 2005 12:06:59 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.13.1/8.13.1) with ESMTP id j16C6wtA023952; Sun, 6 Feb 2005 04:06:58 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.13.1/8.13.1/Submit) id j16C6veL023951; Sun, 6 Feb 2005 04:06:57 -0800 (PST) (envelope-from obrien) Date: Sun, 6 Feb 2005 04:06:57 -0800 From: "David O'Brien" To: mw@kpnqwest.ch Message-ID: <20050206120657.GB22743@dragon.nuxi.com> References: <16901.13269.509134.918380@ran.psg.com> <200502060013.j160DGuc037637@smsgw.vianetworks.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502060013.j160DGuc037637@smsgw.vianetworks.ch> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: Randy Bush cc: FreeBSD Current Subject: Re: logitec usb wireless mouse X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 12:06:59 -0000 On Sun, Feb 06, 2005 at 01:13:16AM +0100, mw@kpnqwest.ch wrote: > > anyone have the logitech wireless mouse working and can send > > a clue? the keyboard is fine. the mouse does the logitec > > connect thing; but moving/clicking it does nothing. > > Perhaps you ran into the same problem I had with the wireless mouse > of the logitech dinovo keyboard. If that's the case, the following will help: > > --- hid.c 6 Jan 2005 01:43:27 -0000 1.24 > +++ hid.c 6 Feb 2005 00:11:32 -0000 > @@ -374,8 +374,9 @@ > int size, id; > > id = 0; > + bzero (&h, sizeof (h)); > for (d = hid_start_parse(buf, len, 1< - if (h.report_ID != 0) > + if (h.report_ID != 0 && !id) Is the real magic the "&& !id"? My read of the code doesn't see the need for the bzero as hid_get_item should be filling 'h'. -- -- David (obrien@FreeBSD.org)