btstack_uart_posix: abort requested read/write operation on set read/write complete handler

This commit is contained in:
Matthias Ringwald 2023-05-06 00:02:56 +02:00
parent 0dedcb9780
commit efc1df5575

View File

@ -372,10 +372,12 @@ static int btstack_uart_posix_close_new(void){
}
static void btstack_uart_posix_set_block_received( void (*block_handler)(void)){
btstack_uart_block_read_bytes_len = 0;
block_received = block_handler;
}
static void btstack_uart_posix_set_block_sent( void (*block_handler)(void)){
btstack_uart_block_write_bytes_len = 0;
block_sent = block_handler;
}