summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-10 17:09:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-10 17:09:45 +0000
commit8d05f7c449e70f25f932b8223a5a8990f7643ecb (patch)
treeec66861ddfefa824a475366508e1134ae8599309 /tools
parent14ee35611d2d24426787e80a27a65e51273de41d (diff)
downloaddrakx-backup-do-not-use-8d05f7c449e70f25f932b8223a5a8990f7643ecb.tar
drakx-backup-do-not-use-8d05f7c449e70f25f932b8223a5a8990f7643ecb.tar.gz
drakx-backup-do-not-use-8d05f7c449e70f25f932b8223a5a8990f7643ecb.tar.bz2
drakx-backup-do-not-use-8d05f7c449e70f25f932b8223a5a8990f7643ecb.tar.xz
drakx-backup-do-not-use-8d05f7c449e70f25f932b8223a5a8990f7643ecb.zip
fix serial probe not detecting legacy mice
Diffstat (limited to 'tools')
-rw-r--r--tools/serial_probe/serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/serial_probe/serial.c b/tools/serial_probe/serial.c
index 9ae3924c3..c84cbcff5 100644
--- a/tools/serial_probe/serial.c
+++ b/tools/serial_probe/serial.c
@@ -993,7 +993,8 @@ struct device *serialProbe(enum deviceClass probeClass, int probeFlags,
goto endprobe;
/* see if we found any PnP signature */
- if (pnp_strlen != 0) {
+ if (pnp_strlen != 0 && (pnp_strlen != 1 || pnp_string[0] != 'M')) {
+
/* fill in the PnP com structure */
if (parse_pnp_string( pnp_string, pnp_strlen, &pnp_id )<0) {
DEBUG("Got PNP data back, but failed to parse. Aborting\n");