mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 21:35:16 +00:00
put h4_reader_process into USE_HCI_READER_THREAD part
This commit is contained in:
parent
0c806b9a9e
commit
2c4a8e6a17
@ -287,7 +287,8 @@ static int h4_process(struct data_source *ds) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int h4_reader_process(struct data_source *ds) {
|
||||
#ifdef USE_HCI_READER_THREAD
|
||||
static int h4_reader_process(struct data_source *ds) {
|
||||
// get token
|
||||
char token;
|
||||
read(hci_transport_h4->pipe_fds[0], &token, 1);
|
||||
@ -302,7 +303,6 @@ static int h4_reader_process(struct data_source *ds) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef USE_HCI_READER_THREAD
|
||||
static void *h4_reader(void *context){
|
||||
while(1){
|
||||
// read up to bytes_to_read data in
|
||||
|
Loading…
x
Reference in New Issue
Block a user