diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-02-10 17:09:45 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-02-10 17:09:45 +0000 |
commit | 8d05f7c449e70f25f932b8223a5a8990f7643ecb (patch) | |
tree | ec66861ddfefa824a475366508e1134ae8599309 /tools/serial_probe/serial.c | |
parent | 14ee35611d2d24426787e80a27a65e51273de41d (diff) | |
download | drakx-8d05f7c449e70f25f932b8223a5a8990f7643ecb.tar drakx-8d05f7c449e70f25f932b8223a5a8990f7643ecb.tar.gz drakx-8d05f7c449e70f25f932b8223a5a8990f7643ecb.tar.bz2 drakx-8d05f7c449e70f25f932b8223a5a8990f7643ecb.tar.xz drakx-8d05f7c449e70f25f932b8223a5a8990f7643ecb.zip |
fix serial probe not detecting legacy mice
Diffstat (limited to 'tools/serial_probe/serial.c')
-rw-r--r-- | tools/serial_probe/serial.c | 3 |
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"); |