aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/atkbdc
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>1999-08-22 06:11:52 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>1999-08-22 06:11:52 +0000
commit7d27f93ac4515b655bb1dc5eabf7411f5ba136d3 (patch)
treebcab6d4bc196751ecd5c003fee98f1980fe300bc /sys/dev/atkbdc
parente7dcbbe2976ff799e9f5598f1b42b7d6595a9d71 (diff)
Notes
Diffstat (limited to 'sys/dev/atkbdc')
-rw-r--r--sys/dev/atkbdc/psm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c
index fa5ba720878f..bdc39dc665bb 100644
--- a/sys/dev/atkbdc/psm.c
+++ b/sys/dev/atkbdc/psm.c
@@ -20,7 +20,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: psm.c,v 1.14 1999/07/12 15:16:04 yokota Exp $
+ * $Id: psm.c,v 1.15 1999/08/17 12:14:13 yokota Exp $
*/
/*
@@ -2209,9 +2209,11 @@ enable_aglide(struct psm_softc *sc)
* NOTE: ALPS produces several models of GlidePoint. Some of those
* do not respond to this sequence, thus, cannot be detected this way.
*/
+ if (set_mouse_sampling_rate(sc->kbdc, 100) != 100)
+ return FALSE;
if (!mouse_id_proc1(sc->kbdc, PSMD_RES_LOW, 2, status))
return FALSE;
- if ((status[0] & 0x10) || (status[1] == PSMD_RES_LOW))
+ if ((status[1] == PSMD_RES_LOW) || (status[2] == 100))
return FALSE;
return TRUE;
}