mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-11 09:40:24 +00:00
bnep_lwip: use generic btstack_run_loop_execute_on_main_thread
This commit is contained in:
parent
fb301407de
commit
5da46df6ab
@ -92,6 +92,7 @@ static btstack_ring_buffer_t bnep_lwip_outgoing_queue;
|
|||||||
#else
|
#else
|
||||||
static QueueHandle_t bnep_lwip_outgoing_queue;
|
static QueueHandle_t bnep_lwip_outgoing_queue;
|
||||||
#endif
|
#endif
|
||||||
|
btstack_context_callback_registration_t bnep_lwip_outgoing_callback_registration;
|
||||||
|
|
||||||
#if NO_SYS
|
#if NO_SYS
|
||||||
static btstack_timer_source_t bnep_lwip_timer;
|
static btstack_timer_source_t bnep_lwip_timer;
|
||||||
@ -181,7 +182,8 @@ static void bnep_lwip_trigger_outgoing_process(void){
|
|||||||
#if NO_SYS
|
#if NO_SYS
|
||||||
bnep_lwip_outgoing_process(NULL);
|
bnep_lwip_outgoing_process(NULL);
|
||||||
#else
|
#else
|
||||||
btstack_run_loop_freertos_execute_code_on_main_thread(&bnep_lwip_outgoing_process, NULL);
|
bnep_lwip_outgoing_callback_registration.callback = &bnep_lwip_outgoing_process;
|
||||||
|
btstack_run_loop_execute_on_main_thread(&bnep_lwip_outgoing_callback_registration);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user