From 1785ac14c2eab7e66877456845dff29e8b51cb94 Mon Sep 17 00:00:00 2001 From: David Kreitschmann Date: Sat, 4 Apr 2015 22:37:03 +0200 Subject: [PATCH] Use more serial devices on Mac OS X Some USB-serial adapters just use tty.usbserial or tty.usbmodem as a device name. (e.g. Prolific). Currently part of a patch for homebrew here: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/libnfc. rb --- libnfc/buses/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/buses/uart.c b/libnfc/buses/uart.c index 953c126..c098036 100644 --- a/libnfc/buses/uart.c +++ b/libnfc/buses/uart.c @@ -74,7 +74,7 @@ #endif # if defined(__APPLE__) -const char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", "tty.usbserial-", NULL }; +const char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", "tty.usbserial", "tty.usbmodem", NULL }; # elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__FreeBSD_kernel__) const char *serial_ports_device_radix[] = { "cuaU", "cuau", NULL }; # elif defined (__linux__)