From 142538a136ccf72f2030efcf41ad04f10b3642f9 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Tue, 9 Oct 2012 10:13:19 +0000 Subject: [PATCH] use non-block for usb2art adapter --- src/hci_transport_h4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci_transport_h4.c b/src/hci_transport_h4.c index 05323eaf0..806ea73ad 100644 --- a/src/hci_transport_h4.c +++ b/src/hci_transport_h4.c @@ -91,7 +91,7 @@ static uint8_t hci_packet[1+HCI_PACKET_BUFFER_SIZE]; // packet type + max(acl he static int h4_open(void *transport_config){ hci_uart_config = (hci_uart_config_t*) transport_config; struct termios toptions; - int flags = O_RDWR | O_NOCTTY; + int flags = O_RDWR | O_NOCTTY | O_NONBLOCK; int fd = open(hci_uart_config->device_name, flags); if (fd == -1) { perror("init_serialport: Unable to open port ");