mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Support download for OpenBSD USB Serial devices
This commit is contained in:
committed by
Mark Liversedge
parent
d77c9eeb73
commit
b9e5de607a
@@ -352,13 +352,14 @@ find_devices(char *result[], int capacity)
|
||||
// /dev/usbmodem[0-9A-F]+ - Usb modem module driver (generic)
|
||||
// /dev/usbserial-[0-9A-F]+ - usbserial module driver (generic)
|
||||
// /dev/KeySerial[0-9] - Keyspan USB/Serial driver
|
||||
// /dev/ttyU[0-9] - Open BSD usb serial devices
|
||||
// /dev/ttyUSB[0-9] - Standard USB/Serial device on Linux/Mac
|
||||
// /dev/ttyS[0-2] - Serial TTY, 0-2 is restrictive, but noone has complained yet!
|
||||
// /dev/ttyACM* - ACM converter, admittidly used largely for Mobiles
|
||||
// /dev/ttyMI* - MOXA PCI cards
|
||||
// /dev/rfcomm* - Bluetooth devices
|
||||
if (regcomp(®,
|
||||
"^(cu\\.(PL2303-[0-9A-F]+|ANTUSBStick.slabvcp|SLAB_USBtoUART|usbmodem[0-9A-F]+|usbserial-[0-9A-G]+|KeySerial[0-9])|ttyUSB[0-9]|ttyS[0-2]|ttyACM*|ttyMI*|rfcomm*)$",
|
||||
"^(cu\\.(PL2303-[0-9A-F]+|ANTUSBStick.slabvcp|SLAB_USBtoUART|usbmodem[0-9A-F]+|usbserial-[0-9A-G]+|KeySerial[0-9])|ttyU[0-9]|ttyUSB[0-9]|ttyS[0-2]|ttyACM*|ttyMI*|rfcomm*)$",
|
||||
REG_EXTENDED|REG_NOSUB)) {
|
||||
assert(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user