mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
btstack_uart_block_embedded: remove data source on close
This commit is contained in:
parent
9788aa5da8
commit
308bc5e02a
@ -107,6 +107,13 @@ static int btstack_uart_embedded_open(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int btstack_uart_embedded_close(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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user