From 8d05f7c449e70f25f932b8223a5a8990f7643ecb Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 10 Feb 2004 17:09:45 +0000 Subject: fix serial probe not detecting legacy mice --- tools/serial_probe/serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.1