add ttyUSB0 to known devices to scan for

This commit is contained in:
Sean C. Rhea
2007-01-06 22:10:06 +00:00
parent 22609913b1
commit 03d913053f

View File

@@ -59,7 +59,8 @@ pt_find_device(char *result[], int capacity)
DIR *dirp;
struct dirent *dp;
int count = 0;
if (regcomp(&reg, "^cu\\.(usbserial-[0-9A-F]+|KeySerial[0-9])$",
if (regcomp(&reg,
"^(cu\\.(usbserial-[0-9A-F]+|KeySerial[0-9])|ttyUSB[0-9])$",
REG_EXTENDED|REG_NOSUB)) {
assert(0);
}