serial_mouse: also check for "pc_serial#" ports

... since that's what we publish now.
Maybe we should just use the BeOS names instead.
This commit is contained in:
François Revol 2014-08-29 20:11:38 +02:00
parent 5e90a2a9c6
commit 821075b6ce
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ SerialMouse::IsMousePresent()
// Skip internal modem (pctel, lucent or trimodem drivers). // Skip internal modem (pctel, lucent or trimodem drivers).
// previously I checked only for != "pctel", now for == "serial#" // previously I checked only for != "pctel", now for == "serial#"
if (strncmp(dev_name, "serial", 5) != 0) if (strncmp(dev_name, "serial", 5) != 0
&& strncmp(dev_name, "pc_serial", 8) != 0)
continue; continue;
if (fSerialPort->Open(dev_name) <= 0) { if (fSerialPort->Open(dev_name) <= 0) {