From 8d9d6a56966c60f9552f5b4559e564bda79e73f4 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Sun, 9 Dec 2012 19:10:35 +0100 Subject: [PATCH] Add ttyAMA* to radix list from UART scanning It allows a PN532 UART connected on raspberry pi to be detected when intrusive scan allowed (e.g. with nfc-scan-device -i) --- libnfc/buses/uart_posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/buses/uart_posix.c b/libnfc/buses/uart_posix.c index 78ca95b..7b687c1 100644 --- a/libnfc/buses/uart_posix.c +++ b/libnfc/buses/uart_posix.c @@ -50,7 +50,7 @@ const char *serial_ports_device_radix[] = { "tty.SLAB_USBtoUART", "tty.usbserial # elif defined (__FreeBSD__) || defined (__OpenBSD__) const char *serial_ports_device_radix[] = { "cuaU", "cuau", NULL }; # elif defined (__linux__) -const char *serial_ports_device_radix[] = { "ttyUSB", "ttyS", "ttyACM", NULL }; +const char *serial_ports_device_radix[] = { "ttyUSB", "ttyS", "ttyACM", "ttyAMA", NULL }; # else # error "Can't determine serial string for your system" # endif