From 327a82080c7c459cb8b03e4e17586829295de812 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 22 Apr 2016 15:57:59 +0200 Subject: [PATCH] posix: set fd in data source --- platform/posix/btstack_uart_block_posix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/posix/btstack_uart_block_posix.c b/platform/posix/btstack_uart_block_posix.c index 15bad3eb3..6697207ad 100644 --- a/platform/posix/btstack_uart_block_posix.c +++ b/platform/posix/btstack_uart_block_posix.c @@ -261,6 +261,9 @@ static int btstack_uart_posix_open(void){ perror("posix_open: Couldn't set term attributes"); return -1; } + + // store fd in data source + transport_data_source.fd = fd; // also set baudrate if (btstack_uart_posix_set_baudrate(baudrate) < 0){