btstack_uart_block_embedded: remove data source on close

This commit is contained in:
Matthias Ringwald 2016-10-12 13:30:00 +02:00
parent 9788aa5da8
commit 308bc5e02a

View File

@ -107,6 +107,13 @@ static int btstack_uart_embedded_open(void){
}
static int btstack_uart_embedded_close(void){
// remove data source
btstack_run_loop_disable_data_source_callbacks(&transport_data_source, DATA_SOURCE_CALLBACK_POLL);
btstack_run_loop_remove_data_source(&transport_data_source);
// close device
// ...
return 0;
}